Hate Coroutines? Hate single use countdowns? Me too.
Delayed Actions is single:
Do A after X seconds. Thats it.This tool can be used in any game, any project.With Delayed Actions you can perform an Action (delegate) at a given time.Common uses/replacements:One time cooldownsPeriodic cooldownsVisual player feedback/animationsGameplay flow eventsDelayed scene loading and unloading, fade in/outsRandom timer events, ambient soundsDelayedActions.Do(...) to schedule an action in the futureDelayedActions.Abort(...) to abort any actionDelayedActions.Sequence(...) creat ea sequence of eventsOther queriesThere is an interactive tutotial in the SampleScene :)Actions may have a name (debug purposes only) and an ID.A DelayedActionsInScene object will be created in DontDestroyOnLoad; that object is essential to the system and it also shows scheduled actions in the inspector.DelayedActions works with in-scene time.Updates on update (real time waited may vary as much as one frame)It executes on the main thread, but you might encounter typical concurrent programming issues.I used ChatGPT to program de inspector editor and parts of the documentation.





