void Awake() { msConnection = MasterServerConnection.Main; if (msConnection == null) { Debug.LogError("LoginMenuController could not find MasterServerConnection."); } }
void Start() { msConnection = MasterServerConnection.Main; if (msConnection == null) { Debug.LogError("CharacterListController could not find MasterServerConnection."); } msConnection.StateChanged += OnStateChanged_MSConnection; Log.MessageLogged += Debug.Log; }
void Awake() { Main = this; this.connection_distribute = new ClientToMasterPackets.Distribution() { out_ErrorCode_c = OnReceive_ErrorCode_c, out_AccountAuthorize_Response_c = OnReceive_AccountAuthorize_Response_c, out_Menu_CharacterListItem_c = OnReceive_Menu_CharacterListItem_c, out_Connection_WorldServerInfo_c = OnReceive_Connection_WorldServerInfo_c }; this.Log.MessageLogged += Debug.Log; }