UI 系统
This commit is contained in:
@@ -9,6 +9,7 @@ namespace BaseGames.UI
|
||||
{
|
||||
Resume, // 继续游戏(关闭暂停面板)
|
||||
OpenSettings, // 打开设置面板
|
||||
OpenPanel, // 打开任意已注册面板(用 targetPanel 指定,如 FormSkills/Abilities)
|
||||
ReturnToMainMenu, // 返回主菜单(场景加载)
|
||||
Quit, // 退出游戏
|
||||
RaiseEvent, // 触发 eventChannel(万能扩展)
|
||||
@@ -34,6 +35,9 @@ namespace BaseGames.UI
|
||||
[Tooltip("点击动作。")]
|
||||
public PauseMenuAction action;
|
||||
|
||||
[Tooltip("OpenPanel 动作要打开的面板 ID(如 FormSkills / Abilities / Map)。")]
|
||||
public PanelId targetPanel;
|
||||
|
||||
[Tooltip("ReturnToMainMenu 的目标场景 Addressable Key(留空用默认主菜单)。")]
|
||||
public string sceneKey;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user