Example #1
0
    public void toggleMultiselect(bool on, timelineGridUI _grid)
    {
        if (!on && multiselecting)
        {
            return;
        }

        multiselectGrid    = on ? _grid : null;
        multiselectEnabled = on;
        if (!usingOculus)
        {
            _touchpad.toggleMultiselect(on);
        }
        else
        {
            if (!deleteEnabled)
            {
                oculusSprites[0].gameObject.SetActive(!on);
            }
            oculusSprites[1].gameObject.SetActive(false);
            if (!deleteEnabled)
            {
                oculusSprites[2].gameObject.SetActive(false);
            }
            oculusSprites[3].gameObject.SetActive(on);
        }
    }
    public void Init()
    {
        _timelineGridRender = GetComponentInChildren <timelineGridRender>();
        _timelinePlayer     = GetComponent <timelinePlayer>();
        _timelineGridUI     = GetComponentInChildren <timelineGridUI>();
        _scrollInterface    = GetComponentInChildren <timelineScrollInterface>();

        _timelineGridRender.Init();

        lastPlaySig = new float[] { 0, 0 };
        lastRecSig  = new float[] { 0, 0 };
    }