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(); }
public abstract void SaveGraph(BaseTimelineGraph graph);
public void Init(TimelineWindow editorWindow, BaseTimelineGraph model) { this.window = editorWindow; this.Model = model; OnInit(); }
public override void SaveGraph(BaseTimelineGraph graph) { serializedGraph = LCJson.JsonMapper.ToJson(graph); }