protected override void UpdateCheck() { if (starpower != null) { uint endPosition = starpower.tick + starpower.length; if ((starpower.tick >= editor.minPos && starpower.tick < editor.maxPos) || (endPosition > editor.minPos && endPosition < editor.maxPos) || (starpower.tick < editor.minPos && endPosition >= editor.maxPos)) { ChartEditor.State currentState = editor.currentState; if (currentState == ChartEditor.State.Editor) { UpdateSongObject(); } } else { gameObject.SetActive(false); } } else { gameObject.SetActive(false); } }
// Use this for initialization void Start() { lineRenderer = GetComponent <LineRenderer>(); pointsController = GetComponent <SetLineRendererPoints>(); lineCurve = lineRenderer.widthCurve; previousApplicationMode = ChartEditor.Instance.currentState; }