using System.Collections; using System.Collections.Generic; using UnityEngine; public class repeatCreate : MonoBehaviour { public float time1 = 4f; public GameObject gameObject; // Start is called before the first frame update void Start() { InvokeRepeating("Create",3,time1); } void Create() { //Instantiate(gameObject, transform.position, transform.rotation); Instantiate(gameObject, transform.position, new Quaternion(0,0,0,0)); } // Update is called once per frame void Update() { } }