コード例 #1
0
    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);
        }
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     lineRenderer            = GetComponent <LineRenderer>();
     pointsController        = GetComponent <SetLineRendererPoints>();
     lineCurve               = lineRenderer.widthCurve;
     previousApplicationMode = ChartEditor.Instance.currentState;
 }