- Home /
Question by
SillyFilly · Nov 18, 2019 at 12:49 AM ·
timeevents
Best way of handling time events based on global time?
What's the most resourceful way of managing time events? I need to call a function several times based on time the player is playing the game (For example at 5th minute, 6th, 10th etc). I cannot use Invoke() method as I need to pass some parameters and the only option I managed to think of is using Coroutines with
yield return new WaitForSeconds(someTime);
line of code but it seems not resourcful having to convert all my event time to seconds and having Unity hadle few dozens of Coroutines waiting for proper game time.
Comment