Created
July 8, 2016 14:11
-
-
Save glitchersgames/b5ea291315dcd8ba2e1dbdddd2d14f4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayerObject, GameObject gamePlayerObject) | |
{ | |
LobbyPlayer lobbyPlayer = lobbyPlayerObject.GetComponent<LobbyPlayer>(); | |
Player gamePlayer = gamePlayerObject.GetComponent<Player>(); | |
// set the SyncVar | |
gamePlayer.m_PlayerNumber = lobbyPlayer.m_PlayerNumber; | |
// setup for the server | |
gamePlayer.SetPlayerDef( lobbyPlayer.playerDef ); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment