private void spawn() { platforms[k].transform.position = new Vector3(0, 0, platforms[k].transform.position.z + (55 * 5)); ObjectSpawner obj = platforms[k].GetComponent <ObjectSpawner>(); obj.RandomEnableObjects(); k = (k + 1) % 5; }
private void spawn() { platforms[k].transform.position = new Vector3(0, 0, platforms[k].transform.position.z + (55 * 5)); ObjectSpawner obj = platforms[k].GetComponent <ObjectSpawner>(); obj.RandomEnableObjects(); k = (k + 1) % 5; }