Пример #1
0
 private void CreateInlineCurveEditor(TimelineWindow.TimelineState state)
 {
     if (Event.get_current().get_type() == 8)
     {
         if (this.clipCurveEditor == null)
         {
             AnimationClip animationClip = this.clip.animationClip;
             if (animationClip != null && animationClip.get_empty())
             {
                 animationClip = null;
             }
             if (animationClip != null && !this.clip.recordable)
             {
                 animationClip = null;
             }
             if (this.clip.curves != null || animationClip != null)
             {
                 state.AddEndFrameDelegate(delegate(ITimelineState istate, Event currentEvent)
                 {
                     this.clipCurveEditor = new ClipCurveEditor(new TimelineClipCurveDataSource(this), this.m_ParentTrack.TimelineWindow);
                     return(true);
                 });
             }
         }
     }
 }