public void SetPlayer() { player = NetworkClient.connection.identity.GetComponent <Mirror.Examples.Chat.Player>(); player.playerName = playerName; }