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); }
public void StartAnimationKeyframeEvent(string ID) { KeyframeEvent keyframeEvent = GetKeyframeEvent(ID); Debug.Assert(keyframeEvent != null, "ID : " + ID); if (keyframeEvent.HasEvent()) { StartCoroutine(StartAnimationKeyframeEvent(keyframeEvent)); } }