Пример #1
0
        public virtual void OnClientRegisterPlayer(NetworkClient client, CUserData playerData)
        {
            var msgRegister = new CMsgRegisterPlayer();

            msgRegister.userData = playerData;
            client.Send((short)EMsgType.RegisterPlayer, msgRegister);
        }
Пример #2
0
 protected override void Awake()
 {
     base.Awake();
     userData = new CUserData();
 }
Пример #3
0
 public virtual void OnClientLoginComplete(CUserData responce)
 {
     CurrentUser = responce;
     CLog.Debug("OnClientLoginComplete " + CurrentUser.token);
     CNetworkManager.Instance.OnClientLoginComplete(CurrentUser);
 }
 public CMsgRegisterPlayer() : base()
 {
     this.userData = new CUserData();
 }
Пример #5
0
 public virtual void OnClientLoginComplete(CUserData player)
 {
     this.networkAddress = SERVER_IP;
     this.networkPort    = SERVER_PORT;
     m_CurrentClient     = this.StartClient();
 }