Helper Scripts Collection 1.3.1
API documentation for the helper scripts compatible with Unity3D
|
A helper class to handle in-game (Application) time and overall DateTime as well More...
Public Types | |
enum | TimerType { Instant = 0 , Never = 1 , MilliSeconds = 3 , Seconds = 4 , Minutes = 5 , Hours = 6 , Days = 7 } |
The available time frames to check | |
Public Member Functions | |
TimingHelper (TimerType timerType) | |
TimingHelper (TimerType timerType, Vector2 minMaxRandomTimeRange) | |
virtual void | Init () |
Call this before using the timer | |
virtual bool | CheckRunningTime (float checkAgainst) |
Checks if the in-game time is reached using the checkAgainst time More... | |
virtual bool | CheckRunningTime () |
Checks if the in-game time is reached using the local CheckAgainstRunningTime More... | |
virtual bool | CheckDateTime (DateTime checkAgainst) |
Checks if the DateTime is reached using the checkAgainst time More... | |
virtual bool | CheckDateTime () |
Checks if the DateTime is reached using the local CheckAgainstDateTime More... | |
virtual object | Clone () |
Fast cloning More... | |
Public Attributes | |
TimerType | timerType = TimerType.Instant |
Which time frames do you want to check? | |
Vector2 | minMaxRandomTimeRange = new Vector2(10, 10) |
Inclusive times to randomly generate | |
Protected Attributes | |
double | _secondsMultiplier = 1 |
Used in Time.Time.time checks | |
double | _milliSecondsMultiplier = 1 |
Used in DateTime checks | |
A helper class to handle in-game (Application) time and overall DateTime as well
|
virtual |
Checks if the DateTime is reached using the local CheckAgainstDateTime
|
virtual |
Checks if the DateTime is reached using the checkAgainst time
checkAgainst |
|
virtual |
Checks if the in-game time is reached using the local CheckAgainstRunningTime
|
virtual |
Checks if the in-game time is reached using the checkAgainst time
checkAgainst |
|
virtual |
Fast cloning