1
This commit is contained in:
@@ -9,8 +9,8 @@ using MuHua;
|
||||
/// UI模块
|
||||
/// </summary>
|
||||
public class ModuleUI : ModuleSingle<ModuleUI> {
|
||||
public static EnumPage page;
|
||||
public static event Action<EnumPage> OnJumpPage;
|
||||
public static Page page;
|
||||
public static event Action<Page> OnJumpPage;
|
||||
|
||||
public UIDocument document;// 绑定文档
|
||||
|
||||
@@ -20,5 +20,19 @@ public class ModuleUI : ModuleSingle<ModuleUI> {
|
||||
protected override void Awake() => NoReplace();
|
||||
|
||||
/// <summary> 跳转页面 </summary>
|
||||
public static void Jump(EnumPage pageType) => OnJumpPage?.Invoke(pageType);
|
||||
public static void Jump(Page pageType) => OnJumpPage?.Invoke(pageType);
|
||||
}
|
||||
/// <summary>
|
||||
/// 页面类型
|
||||
/// </summary>
|
||||
public enum Page {
|
||||
None,
|
||||
|
||||
Menu,// 主菜单
|
||||
Scene,// 场景选择
|
||||
Prepare,// 准备游戏
|
||||
Battle,// 战斗页面
|
||||
Settlement,// 结算页面
|
||||
|
||||
Settings,// 游戏设置
|
||||
}
|
||||
Reference in New Issue
Block a user