I want to instantiate an object in my list every x seconds but i want it to be at a specified location. more specifically, I want it to spawn 20f down on the y axis, and make it keep spawning 20 f down from the last spawn
using UnityEngine; public class GM : MonoBehaviour { public float Timer = 2; public GameObject[] objects; void Update() { Timer -= Time.deltaTime; if (Timer <= 0f) { int rand = Random.Range(0, objects.Length); Instantiate(objects[rand], transform.position, Quaternion.identity); Timer = 10f; } } }