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

Start() before network player spawn ?

$
0
0
Hey guys. In my game, I have a networkManager with an attached prefab for my players, and a game manager that makes a list of all players (for later access) using GameObject newPlayer = (GameObject)GameObject.FindGameObjectWithTag("player");. Problem is, it does not find my player in the scene, but I can see it being created. Would the problem be because the start method execute before network manager spawn my players ?

Full code :

private List<GameObject> players = new List<GameObject>...

Start() before network player spawn ?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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