示例#1
0
        private void OnEditorUpdate()
        {
            if (!Application.isPlaying && IsPlayingSkill)
            {
                float  delta = 1.0f / 30;
                double fTime = (float)EditorApplication.timeSinceStartup - lastUpdateTime;

                if (fTime > delta)
                {
                    RunningTime += delta;
                    BaseSequenceView  sequenceView = GetPartialView <BaseSequenceView>();
                    BaseTimelineGraph sequenceData = sequenceView.Timeline;
                    if (RunningTime >= sequenceData.DurationTime)
                    {
                        RunningTime = 0;
                        //IsPlayingSkill = false;
                    }
                    lastUpdateTime = (float)EditorApplication.timeSinceStartup;
                }
            }
            Repaint();
        }
示例#2
0
 public abstract void SaveGraph(BaseTimelineGraph graph);
示例#3
0
 public void Init(TimelineWindow editorWindow, BaseTimelineGraph model)
 {
     this.window = editorWindow;
     this.Model  = model;
     OnInit();
 }
示例#4
0
 public override void SaveGraph(BaseTimelineGraph graph)
 {
     serializedGraph = LCJson.JsonMapper.ToJson(graph);
 }