Instantiation not working
I have this script that is supposed to instantiate a new gameObject to both players whenever one person presses the specified button. For some reason, it doesn't pop up on the other players screen, but after 10 seconds, all of player 2's instantiations dissapear and then the gameObjects instantiated from player 1 start popping up very slowly.
public class Test : MonoBehaviour
public GameObject spawnIn;
public int rngXMin, rngXMax;
public int rngYMin, rngYMax;
public void Update()
PhotonNetwork.Instantiate(spawnIn.name, new Vector2(Random.Range(rngXMin, rngXMax), Random.Range(rngYMin, rngYMax)), Quaternion.identity, 0);
How do I fix this?