protected virtual void Awake() { Screen.sleepTimeout = SleepTimeout.NeverSleep; #if UNITY_EDITOR || UNITY_STANDALONE_WIN Screen.SetResolution(978, 550, false); //Screen.SetResolution(640, 360, false); #endif //Application.targetFrameRate = FrameRate; Instance = this; EventDispatcher.ClearAll(); UIMgr.InitializeUISystem(); //Game.StateMachine.SetNext (Game.StateMachine.InitState); ShowLogin(); GDM.LoadAll(OnLoadGDMFinished); }
void OnDisable() { localDispatcher.ClearAll(); }