Class SyncTimer
Assembly: LiteEntitySystem.dll
Syntax
public class SyncTimer : SyncableField
Constructors
SyncTimer()
Declaration
SyncTimer(float)
Declaration
public SyncTimer(float maxTime)
Parameters
Type |
Name |
Description |
float |
maxTime |
|
Properties
CountdownTime
Declaration
public float CountdownTime { get; }
Property Value
ElapsedTime
Declaration
public float ElapsedTime { get; }
Property Value
HasStarted
Declaration
public bool HasStarted { get; }
Property Value
IsTimeElapsed
Declaration
public bool IsTimeElapsed { get; }
Property Value
MaxTime
Declaration
public float MaxTime { get; }
Property Value
Progress
Declaration
public float Progress { get; }
Property Value
Methods
CheckAndSubtractMaxTime()
Declaration
public bool CheckAndSubtractMaxTime()
Returns
Finish()
Declaration
LerpByProgress(float, float)
Declaration
public float LerpByProgress(float a, float b)
Parameters
Returns
LerpByProgress(float, float, bool)
Declaration
public float LerpByProgress(float a, float b, bool inverse)
Parameters
Returns
Reset()
Declaration
Reset(float)
Declaration
public void Reset(float maxTime)
Parameters
Type |
Name |
Description |
float |
maxTime |
|
Update(float)
Declaration
public bool Update(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
Returns
UpdateAndCheck(float)
Declaration
public bool UpdateAndCheck(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
Returns
UpdateAndReset(float)
Declaration
public bool UpdateAndReset(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
Returns