Exemplo n.º 1
0
    protected void someHandInteraction() // This is the pause start function of the speed
    {
        if (Input.GetKey(KeyCode.O))     // Change this to collision interaction instead of a button press
        {
            if (paused)
            {
                noteSpeed.SpeedPaused(true);
                paused = false;
            }

            else if (!paused)
            {
                noteSpeed.SpeedPaused(false);
                paused = true;
            }
        }
    }