public void TickDelayed(float deltaTime, float stepProgress, bool stepFirstHalf) { if (ModifierSync.TickDelayed(deltaTime)) { Tick(deltaTime, stepProgress, stepFirstHalf); } }
private void CopyTo(ModifierContainer m, int cloneFlags) { m.parent_ = parent_; m.Modifier = Modifier?.Clone(cloneFlags); m.ModifierSync = ModifierSync?.Clone(cloneFlags); m.enabled_.Value = enabled_.Value; }
public virtual void Reset() { if (ModifierSync != null) { ModifierSync.Resume(); ModifierSync.Reset(); } }
public void Resume() { if (ModifierSync != null) { ModifierSync.Resume(); } DoResume(); }
public void Tick(float deltaTime, float stepProgress, bool stepFirstHalf) { ++tickCalls_; if (ModifierSync == null) { return; } if (ModifierSync.Tick(deltaTime)) { DoTick( deltaTime, ModifierSync.GetProgress(this, stepProgress, stepFirstHalf), ModifierSync.IsInFirstHalf(this, stepProgress, stepFirstHalf)); ModifierSync.PostTick(); } }
public void TickPaused(float deltaTime) { ModifierSync.TickPaused(deltaTime); DoTickPaused(deltaTime); }