public override void OnLobbyServerSceneLoadedForPlayer(NetworkManager manager, GameObject lobbyPlayer, GameObject gamePlayer) { LobbyPlayer lobby = lobbyPlayer.GetComponent <LobbyPlayer>(); PlayerController_net localPlayer = gamePlayer.GetComponent <PlayerController_net>(); localPlayer.name = lobby.playerName; localPlayer.color = lobby.playerColor; }
public void RegisterNewPlayer(PlayerController_net pc) { playerController = pc; }