コード例 #1
0
 public override void Play()
 {
     foreach (var transition in _transitions)
     {
         transition.Reset();
         AnimationSystem.Attach(transition);
     }
 }
コード例 #2
0
 private void PlayNext()
 {
     if (_queue.Any())
     {
         var transition = _queue.Dequeue();
         transition.Reset();
         transition.TransitionComplete += (sender, args) => PlayNext();
         AnimationSystem.Attach(transition);
     }
 }
コード例 #3
0
 internal SequenceAnimation(AnimationSystem animationSystem, T target)
     : base(animationSystem, target)
 {
     _queue = new Queue <Transition>();
 }
コード例 #4
0
 public ParallelAnimation(AnimationSystem animationSystem, T target)
     : base(animationSystem, target)
 {
     _transitions = new List <Transition>();
 }