feat: quit game button
This commit is contained in:
parent
c5e4609101
commit
1c3693419d
4 changed files with 6279 additions and 25 deletions
|
@ -36,6 +36,16 @@ public class Interface : MonoBehaviour {
|
|||
gameOver.DOFade(1f, 1f).OnComplete(() => gameOver.interactable = true);
|
||||
}
|
||||
|
||||
public void QuitGame() {
|
||||
StartCoroutine(QuitRoutine());
|
||||
}
|
||||
|
||||
private IEnumerator QuitRoutine() {
|
||||
anim.SetTrigger(FadeOut);
|
||||
yield return new WaitForSeconds(1f);
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
public void Retry() {
|
||||
StartCoroutine(RetryRoutine());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue