public AdvancedAnimationEvent Add(string clipName) { AdvancedAnimationEvent advancedAnimationEvent = new AdvancedAnimationEvent(); advancedAnimationEvent.clipName = clipName; advancedAnimationEvent.keyframeEvents = new List <UnityKeyframeEvent>(); animationEvents.Add(advancedAnimationEvent); return(advancedAnimationEvent); }
private AdvancedAnimationEvent FindAnimationEvent(string clipName) { AdvancedAnimationEvent value = null; foreach (var iter in animationEvents) { if (iter.clipName == clipName) { value = iter; } } return(value); }
public bool Remove(string clipName) { AdvancedAnimationEvent animationEvent = FindAnimationEvent(clipName); return(animationEvents.Remove(animationEvent)); }