//readonly NetDataReader m_Reader = new NetDataReader(); #endregion #region Mono protected override void OnAwake() { m_ProcessConnect = new ProcessConnect(this); m_ClientManager = new NetManager(this); m_ClientManager.UpdateTime = GameConstants.CLIENT_SEND_DATA_RATE_MILLISEC; m_ClientManager.DisconnectTimeout = GameConstants.TIMEOUT_TIME_MILLISEC; DontDestroyOnLoad(gameObject); }
protected override void OnAwake() { m_ConnectControl = new ProcessConnect(this); m_Players = new Players(GameConstants.MAX_PLAYERS_IN_GAME); m_Server = new NetManager(this); m_Server.UpdateTime = GameConstants.SERVER_SEND_DATA_RATE_MILLISEC; m_Server.DisconnectTimeout = GameConstants.TIMEOUT_TIME_MILLISEC; DontDestroyOnLoad(gameObject); }