Example #1
0
 private async UniTaskVoid PrepareQuit()
 {
     if (await quitPrompt.ShowMessage("Are you sure you want to quit?"))
     {
         Application.Quit();
         Debug.Log("Game has ended!");
     }
 }
Example #2
0
 private async UniTaskVoid PrepareToExit()
 {
     if(await quitPrompt.ShowMessage("Return to Main Menu?"))
     {
         flowManager.EndGame();
         Debug.Log("Returning to menu.");
     }
 }