public virtual void OnClientRegisterPlayer(NetworkClient client, CUserData playerData) { var msgRegister = new CMsgRegisterPlayer(); msgRegister.userData = playerData; client.Send((short)EMsgType.RegisterPlayer, msgRegister); }
public override void OnClientSceneChanged(NetworkConnection conn) { base.OnClientSceneChanged(conn); // TEST var user = new CUserData(); user.displayName = "Player-no." + UnityEngine.Random.Range(1, 9999999); this.OnClientRegisterPlayer(m_CurrentClient, user); }
public CMsgRegisterPlayer() : base() { this.userData = new CUserData(); }
protected override void Awake() { base.Awake(); userData = new CUserData(); }