public void Update() { if (delay_ == null) { return; } if (delay_.SameDelay) { singleDuration_.Update(); } else { halfwayDuration_.Update(); endForwardsDuration_.Update(); endBackwardsDuration_.Update(); } }
public void Update(MorphModifier m, int morphIndex) { movement.Update(sm.Movement); if (m.Progression is OrderedMorphProgression) { var omp = m.Progression as OrderedMorphProgression; timeRemaining.Value = omp.GetTimeRemainingForMorph(morphIndex); progress.Value = omp.GetProgressForMorph(morphIndex); } // todo var natpro = m.Progression as NaturalMorphProgression; if (natpro != null) { var mi = natpro.GetMorphInfoFor(sm); if (mi != null) { duration.Update(); delay.Update(); stopping.Value = mi.stopping; finished.Value = mi.finished; if (mi.target.active) { customTargetTime.Value = mi.target.time; customTargetMovePerTick.Value = mi.target.movePerTick; customTargetValue.Value = mi.target.value; } else { customTargetTime.Value = -1; customTargetMovePerTick.Value = -1; customTargetValue.Value = -1; } return; } } }