Answer the question
In order to leave comments, you need to log in
How can I make a method run multiple times?
You need to make the method work X times.
float x; // переменная (количество, который должен столько раз срабатывать метод)
public GameObject prefabsY; // Префаб объекта, который хочу заспавнить.
void Start()
{
SpawnObjectY();
}
void SpawnObjectY()
{
Instantiate(prefabsY);
}
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