Example #1
0
    public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayer, GameObject gamePlayer)
    {
        Player      p  = gamePlayer.GetComponent <Player>();
        LobbyPlayer lp = lobbyPlayer.GetComponent <LobbyPlayer>();

        p.playerSlot = lp.slot;
        p.playerName = lp.getPlayerName();
        return(true);
    }