public Transform SpawnPosition; public GameObject ObjectToCreate; void SpawnObject() { Instantiate(ObjectToCreate, SpawnPosition.position); }