// Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && state != State.Ready)
        {
            push_pause();
        }

        /*if (Input.GetKeyDown(KeyCode.P))
         * {
         *  Stop();
         * }*/

        if ((state == State.Pause || state == State.GameOver) && Input.GetKeyDown(KeyCode.I))
        {
            CursorUp();
        }
        if ((state == State.Pause || state == State.GameOver) && Input.GetKeyDown(KeyCode.J))
        {
            CursorDown();
        }
        if ((state == State.Pause || state == State.GameOver) && Input.GetKeyDown(KeyCode.Return))
        {
            CursorEnter();
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            soundScript.DecideSound3();
            Application.Quit();
        }
    }
Exemple #2
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Return))
        {
            CursorEnter();
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            soundScript.DecideSound3();
            Application.Quit();
        }
    }
Exemple #3
0
 public void Endbutton()
 {
     soundScript.DecideSound3();
     Application.Quit();
 }