コード例 #1
0
    void Update()
    {
        if (resetScrub)
        {
            scrubReset();
        }

        scrubTransform.gameObject.SetActive(playing || _deviceInterface.recordCountdown || _deviceInterface.playCountdown);
        if (!playing)
        {
            return;
        }

        tex.SetPixels32(wavepixels);
        tex.Apply(false);

        if (curTape != null)
        {
            if (curTape.inDeck())
            {
                createNewTape();
            }
        }

        scrubTransform.localRotation = Quaternion.Euler(0, 0, Mathf.Lerp(0, 360, samplePos));
    }
コード例 #2
0
    void Update()
    {
        manageRotation(panelRing.transform, sprocketRing.transform, 0);
        manageRotation(panelRingB.transform, sprocketRingB.transform, 1);
        if (curTape != null)
        {
            if (curTape.inDeck())
            {
                createNewTape();
            }
        }

        tapeHolder.Rotate(0, Time.deltaTime * 15, 0);
    }