Beispiel #1
0
 public void CmdUpdatePlayerName(string newName)
 {
     //playerTiles[id].playerName = newName;
     Debug.Log("CmdUpdatePlayerName");
     if (networkRoomPlayer)
     {
         networkManager.AddPlayerName(newName, networkRoomPlayer);
     }
     else
     {
         Debug.Log("Failed to update player name");
     }
 }
 public override void OnStartServer()
 {
     Debug.Log("Starting on server");
     base.OnStartServer();
     // networkRoomManager.RoomSceneLoaded += BroadcastSelf;
     networkRoomManager.AddPlayerName("Player" + networkRoomManager.playerNames.Count, this.gameObject.GetComponent <RoomPlayerCustom>());
 }