Ejemplo n.º 1
0
 private void KeyframeEventHandle(KeyframeEvent keyframeEvent, int currentFrame)
 {
     if (keyframeEvent.eventKeyframe == currentFrame)
     {
         keyframeEvent.OnKeyframeEvent();
     }
 }
Ejemplo n.º 2
0
        private IEnumerator StartAnimationKeyframeEvent(KeyframeEvent Event)
        {
            yield return(new WaitForEndOfFrame());

            Event.OnKeyframeEvent();

            InvokeEvent(Event.ID);
        }
        public void StartAnimationKeyframeEvent(string ID)
        {
            KeyframeEvent keyframeEvent = GetKeyframeEvent(ID);

            Debug.Assert(keyframeEvent != null, "ID : " + ID);

            if (keyframeEvent.HasEvent())
            {
                StartCoroutine(StartAnimationKeyframeEvent(keyframeEvent));
            }
        }