Class SyncTimer
- Namespace
- LiteEntitySystem.Extensions
- Assembly
- LiteEntitySystem.dll
public class SyncTimer : SyncableField
- Inheritance
-
object
SyncTimer
- Inherited Members
-
Constructors
SyncTimer()
SyncTimer(float)
public SyncTimer(float maxTime)
Parameters
maxTime
float
Properties
CountdownTime
public float CountdownTime { get; }
Property Value
- float
ElapsedTime
public float ElapsedTime { get; }
Property Value
- float
HasStarted
public bool HasStarted { get; }
Property Value
- bool
IsTimeElapsed
public bool IsTimeElapsed { get; }
Property Value
- bool
MaxTime
public float MaxTime { get; }
Property Value
- float
Progress
public float Progress { get; }
Property Value
- float
Methods
CheckAndSubtractMaxTime()
public bool CheckAndSubtractMaxTime()
Returns
- bool
Finish()
LerpByProgress(float, float)
public float LerpByProgress(float a, float b)
Parameters
a
float
b
float
Returns
- float
LerpByProgress(float, float, bool)
public float LerpByProgress(float a, float b, bool inverse)
Parameters
a
float
b
float
inverse
bool
Returns
- float
Reset()
Reset(float)
public void Reset(float maxTime)
Parameters
maxTime
float
Update(float)
public bool Update(float delta)
Parameters
delta
float
Returns
- bool
UpdateAndCheck(float)
public bool UpdateAndCheck(float delta)
Parameters
delta
float
Returns
- bool
UpdateAndReset(float)
public bool UpdateAndReset(float delta)
Parameters
delta
float
Returns
- bool