public void StartPlaying(VideoCutSlider vcs) { if (skeletonFrames == null) { return; } isPlaying = true; if (currFrame > 0) { if (currFrame < vcs.start || currFrame > vcs.end) { currFrame = vcs.start; } } /* * if (!useOffset) * currFrame = videoCutSlider.start; * else * currFrame = 0; */ }
public void Start() { //print(type.ToString()); slider = this.transform.parent.GetComponent <RectTransform>(); vcs = slider.GetComponent <VideoCutSlider>(); rTransform = this.GetComponent <RectTransform>(); backgr = transform.parent.FindChild("RangeBackGr").GetComponent <RectTransform>(); int intPos = 0; switch (type) { case Type.Start: intPos = vcs.start; break; case Type.Current: intPos = vcs.current; break; case Type.End: intPos = vcs.end; break; } state = intPos; SetPosition(); }
public void SetCurrFrame(VideoCutSlider vcs) { this.SetCurrFrameWithInvoke(vcs.current); }