Sequine - Scripting API
Calcatz.Sequine.UpdateModeUtility Class Reference

Static Public Attributes

static Dictionary< UpdateMode, Func< float > > GetDeltaTime
 
static Dictionary< UpdateMode, Func< YieldInstruction > > GetYieldReturn
 

Member Data Documentation

◆ GetDeltaTime

Dictionary<UpdateMode, Func<float> > Calcatz.Sequine.UpdateModeUtility.GetDeltaTime
static
Initial value:
= new Dictionary<UpdateMode, Func<float>>() {
{UpdateMode.NormalUpdate, ()=>Time.deltaTime },
{UpdateMode.LateUpdate, ()=>Time.deltaTime },
{UpdateMode.FixedUpdate, ()=>Time.fixedDeltaTime },
{UpdateMode.UnscaledTime, ()=>Time.unscaledDeltaTime },
{UpdateMode.Manual, ()=> 0f },
{UpdateMode.RealtimeClock, ()=> 0f }
}
UpdateMode
Definition: UpdateMode.cs:8

◆ GetYieldReturn

Dictionary<UpdateMode, Func<YieldInstruction> > Calcatz.Sequine.UpdateModeUtility.GetYieldReturn
static
Initial value:
= new Dictionary<UpdateMode, Func<YieldInstruction>>() {
{UpdateMode.NormalUpdate, ()=> null },
{UpdateMode.LateUpdate, ()=> {
if (endOfFrameCache == null) endOfFrameCache = new WaitForEndOfFrame();
return endOfFrameCache;
}},
{UpdateMode.FixedUpdate, ()=> new WaitForFixedUpdate() },
{UpdateMode.UnscaledTime, ()=> null },
{UpdateMode.Manual, ()=> null },
{UpdateMode.RealtimeClock, ()=> null }
}