예제 #1
0
 public StaticCameraPath(Routines.Animation animation, TimeSpan duration, ImmutableTransform @from, ImmutableTransform to)
 {
     _animation = animation;
     _duration  = duration;
     _from      = @from;
     _to        = to;
 }
예제 #2
0
 private static IEnumerator <WaitCommand> Fade(IClock clock, TimeSpan duration, Routines.Animation animation, Action <float> fader)
 {
     yield return(Routines.Animate(clock.PollDeltaTime, duration, fader, animation).AsWaitCommand());
 }