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

Network Instantiate player

$
0
0
When i connect to my server the server player does not exist but on the server there is 2 players.

void OnLevelWasLoaded(int level) {
playerSpawner.GetComponent<PlayerSpawn>().spawnPlayer();
}

and on player spawner:
GameObject player = (GameObject)Network.Instantiate (playerPrefab, playerPrefab.transform.position, playerPrefab.transform.rotation, 1);

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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