Skip to content

nanamgo/SimpleTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleTimer

This is a simple timer source code that does not rely on Unity's coroutine processing.

Overview

Simple source code that works inside the update function.
It is divided into for inheritance, for overriding, and static that can be used from anywhere in the project.
A specific example of use is summarized in "SampleScript.cs".

Class and function

Timer

SetTimer(float time) -> Set the timer time.
Count() -> Count the timer based on the set time. Returns a bool value when the timer expires.
Reset() -> Reset the timer.

WrapTimer

It is the same as the timer class, but it can be overridden.

StaticTimer

It's just like the Timer class, but it can be called from anywhere in the project. Place it in any folder and use it.

Version

Unity 2021.3.8f1

About

This is a simple timer source code that does not rely on Unity's coroutine processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages