示例#1
0
        public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayer, GameObject gamePlayer)
        {
            GameLobbyPlayer lPlayer = lobbyPlayer.GetComponent <GameLobbyPlayer>();
            Player          player  = gamePlayer.GetComponent <Player>();

            player.playerName = lPlayer.Name;
            player.color      = lPlayer.Skins[lPlayer.SkinNumber].skin;
            return(true);
        }
示例#2
0
 /// <summary>
 /// Kicks the player on the given connection
 /// </summary>
 /// <param name="conn">Connection with the player</param>
 public void KickPlayer(GameLobbyPlayer player)
 {
     player.connectionToClient.Send(MsgKicked, new KickMsg());
 }