Exemplo n.º 1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Y))
        {
            queue.Reset();
        }

        if (Input.GetKeyDown(KeyCode.U))
        {
            queue.Restart();
        }

        if (Input.GetKeyDown(KeyCode.I))
        {
            queue.Play();
        }

        if (Input.GetKeyDown(KeyCode.O))
        {
            queue.Pause();
        }

        if (Input.GetKeyDown(KeyCode.P))
        {
            queue.Stop();
        }
    }
Exemplo n.º 2
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Y))
        {
            Debug.Log("Reset " + Time.time);
            queue.Reset();
        }

        if (Input.GetKeyDown(KeyCode.U))
        {
            Debug.Log("Restart " + Time.time);
            queue.Restart();
        }

        if (Input.GetKeyDown(KeyCode.I))
        {
            Debug.Log("Play " + Time.time);
            queue.Play();
        }

        if (Input.GetKeyDown(KeyCode.O))
        {
            Debug.Log("Pause " + Time.time);
            queue.Pause();
        }

        if (Input.GetKeyDown(KeyCode.P))
        {
            Debug.Log("Stop " + Time.time);
            queue.Stop();
        }
    }