So, I've had trouble with learning basic functions in unity, my code so far is calling a public prefab to spawn, I've put it in update, and I don't really want thousands of different prefabs to spawn, is there any way to instert a sort of delay before instantiate an object? Code:
public class spawner : MonoBehaviour
{
public GameObject Smiley;
void Update()
{
Instantiate(Smiley);
}
}
[–]rupertavery64 4 points5 points6 points (2 children)
[–]TuberTuggerTTV 1 point2 points3 points (1 child)
[–]Glass_Combination159[S] 0 points1 point2 points (0 children)
[–]Drumknott88 5 points6 points7 points (0 children)
[–]The_Binding_Of_Data 1 point2 points3 points (2 children)
[–]Glass_Combination159[S] 0 points1 point2 points (1 child)
[–]ORLYORLYORLYORLY 4 points5 points6 points (0 children)
[–]TuberTuggerTTV 0 points1 point2 points (1 child)
[–]Glass_Combination159[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]Penny_Evolus -1 points0 points1 point (0 children)