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;
((MonoBehaviour)myPlayerGO.GetComponent (“ArmRotation”)).enabled = true;
((MonoBehaviour)myPlayerGO.GetComponent (“Weapon”)).enabled = true;
((MonoBehaviour)myPlayerGO.GetComponent (“Platformer2DUserControl”)).enabled = true;
}
}