Exemple #1
0
 void IDirectableTimePointer.TriggerForward(float currentTime, float previousTime)
 {
     if (currentTime >= target.startTime)
     {
         if (!triggered)
         {
             triggered = true;
             target.Enter();
             target.Update(Mathf.Clamp(currentTime - target.startTime, 0, targetLength), 0);
         }
     }
 }
Exemple #2
0
 void IDirectableTimePointer.TriggerForward(float currentTime, float previousTime)
 {
     if (currentTime >= target.endTime || (currentTime == target.root.length && target.startTime < target.root.length))
     {
         if (!triggered)
         {
             triggered = true;
             target.Update(targetLength, Mathf.Clamp(previousTime - target.startTime, 0, targetLength));
             target.Exit();
         }
     }
 }