private void menuHandle(object s) { AnimationClip target = base.target as AnimationClip; AnimationEvent[] events = AnimationUtility.GetAnimationEvents(target); AnimationEvent e = (AnimationEvent)s; if (e != null) { isDirty = true; ArrayUtil.AddItem(ref events, e); AnimationUtility.SetAnimationEvents(target, events); } }