Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Object Reference not set to an instance of an object

$
0
0
Here is the code when I play the scripts still are not enabled :(

void SpawnMyPlayer()
{
if (spawnSpots == null) {
Debug.Log ("No SpawnSpot!!!");
return;
}
SpawnSpot mySpawnSpot = spawnSpots [Random.Range (0, spawnSpots.Length)];
GameObject myPlayerGO = (GameObject)PhotonNetwork.Instantiate ("PlayerSpace 1", mySpawnSpot.transform.position, mySpawnSpot.transform.rotation, 0);
Death.enabled = false;...

Object Reference not set to an instance of an object

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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