Exemplo n.º 1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (!settings.RestartPanel.activeSelf)
         {
             GameManager.Instance.paused = !GameManager.Instance.paused;
         }
         else
         {
             settings.CancelRestart();
         }
     }
 }