// 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(); } }
void Update() { if (Input.GetKeyDown(KeyCode.Return)) { CursorEnter(); } if (Input.GetKeyDown(KeyCode.Escape)) { soundScript.DecideSound3(); Application.Quit(); } }
public void Endbutton() { soundScript.DecideSound3(); Application.Quit(); }