public void Init() { MessageManager.GetInstance().SetCallbackNotFoundMessage(this.OnNotFoundMessage); MessageManager.GetInstance().Regist((int)GameMessageDefine.UIMessage_AddToTick, OnUIMessage_AddToTick); MessageManager.GetInstance().Regist((int)GameMessageDefine.UIMessage_RemoveFromTick, OnUIMessage_RemoveFromTick); InitGlobaData(); //InitModule(); PageMgr.SetButtonSound(Config.globalConfig.getInstace().UiButtonSoynd); this.tickObj = new GameManagerTick(); #if UNITY_EDITOR tickCount = 0; #endif }