public override void Initialize() { but_system = UnityTool.FindChildComponent <Button>(RootUI, "but_system"); if (but_system != null) { but_system.onClick.AddListener(() => { UnityTool.M_Debug("打开设置UI"); }); } }
public override void Initialize() { but_start = UnityTool.FindChildComponent <Button>(RootUI, "but_start"); if (but_start != null) { but_start.onClick.AddListener(() => { SceneStateController.Instance.SetState(SceneType.MainSecene, typeof(MainSecene)); SceneStateController.Instance.RemoveScene(SceneType.RoleSelectScene); }); } }