Exemplo n.º 1
0
 void IObservable <SequenceAnimationTriggeredArgs> .Notify(SequenceAnimationTriggeredArgs eventArgs)
 {
     if (SequenceAnimationTriggered != null)
     {
         SequenceAnimationTriggered.Invoke(this, eventArgs);
     }
 }
Exemplo n.º 2
0
 void IObserver <SequenceAnimationTriggeredArgs> .OnNotified(object sender, SequenceAnimationTriggeredArgs eventArgs)
 {
     UnityMainThreadDispatcher.Instance().Enqueue(SequenceAnimationRoutine(eventArgs.ActionID1,
                                                                           eventArgs.ActionID2,
                                                                           eventArgs.Timer1,
                                                                           eventArgs.Timer2));
 }
Exemplo n.º 3
0
        private void OnSequencePlayButtonPressed()
        {
            if (_sequenceAction1ID == -1 || _sequenceAction2ID == -1)
            {
                return;
            }

            var args = new SequenceAnimationTriggeredArgs(_sequenceAction1ID, _sequenceAction2ID, _sequenceTimerValue1, _sequenceTimerValue2);

            (this as IObservable <SequenceAnimationTriggeredArgs>).Notify(args);

            ToggleSequencePlayButton(false);
        }