Hi everyone!
In this video I will show you 3 ways to delay functions in Unity like for example do something after a certain amount of time has passed or how to do something every X seconds.
I will use as an example an enemy spawner which will spawn enemies after a certain amount of time has passed or every few seconds.
00:00 Intro
00:19 Using a script to keep track of the elapsed time
01:32 Using Invoke and InvokeRepeating
02:19 Using Coroutines
03:13 Conclusion and outro
#codingdodo #unity #gamedev #delayfunctions