예제 #1
0
    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;
    }
예제 #2
0
 public void RegisterNewPlayer(PlayerController_net pc)
 {
     playerController = pc;
 }