Example #1
0
 public static void OnPlayTimeChangeCallback(TimelinableSequenceBase sequence, float playTime)
 {
     if (sequence == null || sequence.tracks.IsNullOrEmpty())
     {
         return;
     }
     sequence.Retime(playTime);
 }
Example #2
0
 public virtual void UpdateTime(float time)
 {
     curTime = time;
     if (isPlaying)
     {
         sequence.Tick(time);
     }
     else
     {
         sequence.Retime(time);
     }
 }