Ejemplo n.º 1
0
 private void HandleAnimationEvent(Transform originator, AnimationEvent message)
 {
     if ((message == AnimationEvent.DeathSequenceComplete) && (originator == _transform))
     {
         // TODO: remove from play gracefully, update any states
         _transform.gameObject.SetActive(false);
     }
 }
Ejemplo n.º 2
0
 private void HandleAnimationEvent(Transform originator, AnimationEvent message)
 {
     if ((message == AnimationEvent.DeathSequenceComplete) && (originator == _transform))
     {
         // TODO: remove from play gracefully, update any states
         _transform.gameObject.SetActive(false);
     }
 }
Ejemplo n.º 3
0
        private void HandleAnimationEvent(Transform originator, AnimationEvent message)
        {
            if (originator == Transform)
            {
                switch (message)
                {
                case AnimationEvent.AutoActionEffectOccurs: InvokeAutoActionEffect(); break;

                case AnimationEvent.AutoActionComplete: CompleteAutoAction(); break;
                }
            }
        }
Ejemplo n.º 4
0
 private void HandleAnimationEvent(Transform originator, AnimationEvent message)
 {
     if (originator == Transform)
     {
         switch (message)
         {
             case AnimationEvent.AutoActionEffectOccurs: InvokeAutoActionEffect(); break;
             case AnimationEvent.AutoActionComplete: CompleteAutoAction(); break;
         }
     }
 }