Skip to content

CCH1215/TimerManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimerManager

TimerManager provides a easy way to set, operate and remove timer.

Set TimerManager

Add TimerManager script as a component

Example

Add a custom timer.

If timerName is existing, this would only add callback to the timer with the name of timerName.

TimerManager.Instance.AddTimer(timerName, 3.0f, MyCallback, autoRemove:false);

Pause a timer

TimerManager.Instance.SetTimerPause("TimerName", true);

Resume a timer

TimerManager.Instance.SetTimerPause("TimerName", false);

Preset Timer

Add callback to preset(existing) timers

TimerManager.Instance.AddTimerCallback("1Sec", MyCallback);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published