Class TimeModifiedTimer
Inheritance
TimeModifiedTimer
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class TimeModifiedTimer
Constructors
TimeModifiedTimer()
Declaration
public TimeModifiedTimer()
TimeModifiedTimer(FloatRange, Boolean)
Declaration
public TimeModifiedTimer(FloatRange defaultValueRange, bool assignCurrValue = true)
Parameters
TimeModifiedTimer(Single, Boolean)
Declaration
public TimeModifiedTimer(float defaultValue, bool assignCurrValue = true)
Parameters
Type |
Name |
Description |
System.Single |
defaultValue |
|
Boolean |
assignCurrValue |
|
Properties
CurrValue
Declaration
public float CurrValue { get; }
Property Value
Type |
Description |
System.Single |
|
DefaultValue
Declaration
public float DefaultValue { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Methods
ModifiedDecrease()
Declaration
public bool ModifiedDecrease()
Returns
Type |
Description |
Boolean |
True when the timer is done (value is equal or below zero).
|
Reload()
Declaration
Reload(FloatRange)
Declaration
public void Reload(FloatRange newDefaultValueRange)
Parameters
Type |
Name |
Description |
FloatRange |
newDefaultValueRange |
|
Reload(Single)
Declaration
public void Reload(float newValue)
Parameters
Type |
Name |
Description |
System.Single |
newValue |
|
SetDefaultValue(Single)
Declaration
public void SetDefaultValue(float newDefaultValue)
Parameters
Type |
Name |
Description |
System.Single |
newDefaultValue |
|