Answer the question
In order to leave comments, you need to log in
Will the code work like this?
There is this code
IEnumerator instObj ()
{
(1) yield return new WaitForSeconds(1.5f);
(2) Instantiate(obj, new Vector3(Random.Range(-10f, 10f), 0, Random.Range(-10f, 10f)), Quaternion.identity);
}
IEnumerator instObj ()
{
(2)Instantiate(obj, new Vector3(Random.Range(-10f, 10f), 0, Random.Range(-10f, 10f)), Quaternion.identity);
(1) yield return new WaitForSeconds(1.5f);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question