Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId) {
- NetworkPlayer newPlayer = Instantiate<NetworkPlayer>(m_NetworkPlayerPrefab);
- DontDestroyOnLoad(newPlayer);
- NetworkServer.AddPlayerForConnection(conn, newPlayer.gameObject, playerControllerId);
- }
Add Comment
Please, Sign In to add comment