public override float PreShow(UI_Base _pre_ui, params object[] _args) { //显示上次登陆的用户名 m_edit_account.text = LocalConfigSystem.Instacne.GetOptionConfig("CurrentAccount"); m_edit_password.text = LocalConfigSystem.Instacne.GetOptionConfig("CurrentPassword"); SignalSystem.Register(SignalId.Login_ForceLogin, _forceLogin); return(m_entrance_anim_time); }
public override void OnEnter() { //SignalSystem.Register( SignalId.NetworkState_EnterConnected, _enterNetworkConnectedState ); SignalSystem.Register(SignalId.Login_Success, _loginSuccess); UIManager.Instance.CreateTitle(); UIManager.Instance.ShowUI("ui_login"); LoginSystem.Instance.Initialize(); //由于登录成功后服务器马上发其他消息 所以这些消息的注册放到这 RoomSystem.Instance.Initialize(); LobbySystem.Instance.Initialize(); EMailSystem.Instance.Initialize(); ItemSystem.Instance.Initialize(); ShopSystem.Instance.Initialize(); }
public override float PreShow(UI_Base _pre_ui, params object[] _args) { SignalSystem.Register(SignalId.Chat_ReceiveChat, _receivePlayerChat); _updateChat(); return(m_entrance_anim_time); }