private void KeyframeEventHandle(KeyframeEvent keyframeEvent, int currentFrame) { if (keyframeEvent.eventKeyframe == currentFrame) { keyframeEvent.OnKeyframeEvent(); } }
private IEnumerator StartAnimationKeyframeEvent(KeyframeEvent Event) { yield return(new WaitForEndOfFrame()); Event.OnKeyframeEvent(); InvokeEvent(Event.ID); }