Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Problem with initializing 2nd player

$
0
0
Hi,

I have no problem connecting and attaching the host's player but the client when connects, doesn't get initialized. I've overrode NetworkManager with this:

Code (csharp):
  1.  
  2.   public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId)
  3.   {
  4.   // Generate and spawn a new player
  5.   GameObject player =  GameManager.Instance.SpawnANewPlayer(playerControllerId).gameObject;
  6.   NetworkServer.AddPlayerForConnection(conn, player, playerControllerId);
  7.   }
  8.  
And I believe...

Problem with initializing 2nd player

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>