public override void OnLobbyServerSceneLoadedForPlayer(NetworkManager manager, GameObject lobbyPlayer, GameObject gamePlayer) { LobbyPlayer lobby = lobbyPlayer.GetComponent <LobbyPlayer>(); PlayerMageController mage = gamePlayer.GetComponent <PlayerMageController>(); mage.color = lobby.playerColor; mage.playerName = lobby.name; mage.SetPlayerId(lobby.playerId); }
// Use this for initialization public override void OnStartPlayer() { base.OnStartPlayer(); playerMage = player.GetComponent <PlayerMageController>(); }