Esempio n. 1
0
 public void TickDelayed(float deltaTime, float stepProgress, bool stepFirstHalf)
 {
     if (ModifierSync.TickDelayed(deltaTime))
     {
         Tick(deltaTime, stepProgress, stepFirstHalf);
     }
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public virtual void Reset()
 {
     if (ModifierSync != null)
     {
         ModifierSync.Resume();
         ModifierSync.Reset();
     }
 }
Esempio n. 4
0
        public void Resume()
        {
            if (ModifierSync != null)
            {
                ModifierSync.Resume();
            }

            DoResume();
        }
Esempio n. 5
0
        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();
            }
        }
Esempio n. 6
0
 public void TickPaused(float deltaTime)
 {
     ModifierSync.TickPaused(deltaTime);
     DoTickPaused(deltaTime);
 }