Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

A co-routine with a "Yield WaitforSeconds" is probably what some people are referring to

You can find a sample here https://docs.unity3d.com/ScriptReference/WaitForSeconds.html

Co-routines are pretty awesome for handling something when you need a specific period of time to lapse before doing the next thing :)

You can also use the update method and Time.deltaTime to check if a certain amount of time has passed https://docs.unity3d.com/ScriptReference/Time-deltaTime.html.

Both methods should do what you are looking for :)

Looks like it could work, I’ll try it and then I’ll come back(: 

Thank you! It worked! Im new so I started screaming when it worked!

Haha, glad to hear it worked and also the reaction it caused! :)  The first one is my method of choice for timed events most of the time :)

Haha Yes I did not bother trying the second one because time.deltaTime does not work on my computer/:

First one worked!