protected override void OnStart() { base.OnStart(); UIInitSceneView view = UISceneCtrl.Instance.Load(UISceneType.Init).GetComponent <UIInitSceneView>(); view.SetUI(); UIDispatcher.Instance.AddEventListen(ConstDefine.StartGame, OnStartGame); ChangeSceneCtrl.Instance.Show(ChangeSceneType.Open, Global.Instance.ChangeSceneTime); }
protected override void OnStart() { base.OnStart(); UIInitSceneView view = UISceneCtrl.Instance.Load(UISceneType.Init).GetComponent <UIInitSceneView>(); DataTransfer data = new DataTransfer(); data.SetData(ConstDefine.MusicStatus, Global.Instance.IsPlaySound); view.SetUI(data); if (Global.Instance.IsFirstEnterGame) { Global.Instance.IsFirstEnterGame = false; } else { ChangeSceneCtrl.Instance.Show(ChangeSceneType.Open, null); } UIDispatcher.Instance.AddEventListen(ConstDefine.SceneInitSceneViewClickStartGameBtn, OnInitSceneViewClickStartGameBtn); //Global.Instance.SetMusic(); }