getChannel() public method

public getChannel ( string channel ) : double
channel string
return double
Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown("up"))
        {
            tempo++;
            csound.setChannel("tempo", tempo);
        }
        else if (Input.GetKeyDown("down"))
        {
            tempo--;
            csound.setChannel("tempo", tempo);
        }

        if (currentBeat == csound.getChannel("beat"))
        {
            ResizeCube(currentBeat);
            currentBeat = (currentBeat != 7 ? currentBeat + 1 : 0);
        }
    }