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); }
/// <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()); }