public virtual void OnClientRegisterPlayer(NetworkClient client, CUserData playerData) { var msgRegister = new CMsgRegisterPlayer(); msgRegister.userData = playerData; client.Send((short)EMsgType.RegisterPlayer, msgRegister); }
protected override void Awake() { base.Awake(); userData = new CUserData(); }
public virtual void OnClientLoginComplete(CUserData responce) { CurrentUser = responce; CLog.Debug("OnClientLoginComplete " + CurrentUser.token); CNetworkManager.Instance.OnClientLoginComplete(CurrentUser); }
public CMsgRegisterPlayer() : base() { this.userData = new CUserData(); }
public virtual void OnClientLoginComplete(CUserData player) { this.networkAddress = SERVER_IP; this.networkPort = SERVER_PORT; m_CurrentClient = this.StartClient(); }