public void Init(Timeline timeline) { this._timeline = timeline; this._scenes = timeline.scenes; this._code = timeline.code; this._gui = timeline.gui; this._timeframe = timeline.timeframe; //timeline.timeframe.AddRevertCallback(timeline.slider_box, testRevert); TimelineCode.Log("(" + this._timeline.name + ") : Init Timeframe Control"); }
public Timeline(int length = 1000, string name = "timeline", bool mute = false) { this.length = length; this.name = name; this.mute = mute; access = new Access(code); access.defaults.timeframe = "read"; Params(true, 0, 0, 0, true, 0, -999999, false); ////Timeline code ---- code.Init(this); //setup binding per timeline binding = code.binding; binding.Init(this); //setup buffer buffer = code.buffer; buffer.Init(this); //setup interpolation interpolation = buffer.interpolation; //setup timeframe timeframe = code.timeframe; timeframe.Init(this); if (!GUI.initialized) { string sceneName = SceneManager.GetActiveScene().name; //// TimelineCode.scene = scenes.Init(this, (Timeline.Scenes.Scene) this.scenes.GetMember(sceneName)); ////Timeline gui ---- gui.Init(this); // moved to timline gui Awake() timeframe.InitGUI(this); } }