// Use this for initialization void Start() { InitUI(); // 事件Button_00 功能同Button_03 EventTriggerListener listenerCoin = EventTriggerListener.Get(btn_coin.gameObject); listenerCoin.SetEventHandle(EnumTouchEventType.OnClick, OnButtonCoin, "OnClickCoin"); // 事件Button_01 功能同Button_02 EventTriggerListener listeneStart = EventTriggerListener.Get(btn_start.gameObject); listeneStart.SetEventHandle(EnumTouchEventType.OnClick, OnButtonStart, "OnClickStart"); loginModule = ModuleManager.Instance.Get <LoginModule>(); loginModule.Load(); // Login界面打开初始化完成后,刷新一次数据 Message message = new Message(MessageType.Message_LoginView_Is_Open, this); message.Send(); MessageCenter.Instance.AddListener(MessageType.Message_Key_Game_Start, OnKeyStart); }