Exemplo n.º 1
0
 void OnThirtySecond(BeatArgs e)
 {
     if (e.TickMask [TickValue.Quarter])
     {
         target *= -1f;
     }
 }
Exemplo n.º 2
0
 void OnThirtySecond(BeatArgs e)
 {
     if (e.TickMask [TickValue.Eighth])
     {
         //	audio.clip = clips [Random.Range (0, 1)];
         //audio.Play ();
     }
 }
Exemplo n.º 3
0
    public void OnThirtySecond(BeatArgs e)
    {
        if (e.TickMask[TickValue.Measure])
        {
            // rhythm creation / beat visual
            changeRhythm = true;
        }

        //else if (e.TickMask[TickValue.Quarter])
        //{
        //    // rhythm creation / beat visual
        //    changeRhythm = true;
        //}

        switch (timeScale)
        {
        case 0:
            if (e.TickMask[TickValue.Measure])
            {
                // rhythm creation / beat visual
                showRhythm = true;
            }
            break;

        case 1:
            if (e.TickMask[TickValue.Quarter])
            {
                // rhythm creation / beat visual
                showRhythm = true;
            }
            break;

        case 2:
            if (e.TickMask[TickValue.Eighth])
            {
                // rhythm creation / beat visual
                showRhythm = true;
            }
            break;

        case 3:
            if (e.TickMask[TickValue.Sixteenth])
            {
                // rhythm creation / beat visual
                showRhythm = true;
            }
            break;

        case 4:
            if (e.TickMask[TickValue.ThirtySecond])
            {
                // rhythm creation / beat visual
                showRhythm = true;
            }
            break;
        }
    }