Hello, I am trying to implement a temporary boost (e.g. with duration 30s) in my game. I would like to use the Scheduler.ScheduleFixed(...) method to reset the speed attribute back to the original speed after the boost expires. However, if the player dies, then I also want to reset the speed attribute.
Therefore, I am wondering, if I call Invoke() on the ScheduledEventBase that is returned by the Scheduler.ScheduleFixed(...) method, what exactly happens?
Therefore, I am wondering, if I call Invoke() on the ScheduledEventBase that is returned by the Scheduler.ScheduleFixed(...) method, what exactly happens?
- Will the Action I specified in ScheduleFixed(...) execute?
- Will ScheduledEventBase.Active become false?
- Do I need to cancel the scheduled event?
- What happens to the ScheduledEventBase variable after the scheduled event executes. Does it become null, or just have Active = false? (Sorry this might be repeating the above questions).