Exemplo n.º 1
0
 public void PerformAction(int action)
 {
     menuSounds.Play();
     if (action < 3)
     {
         menus[curMenu].SetActive(false);
         menus[action].SetActive(true);
         curMenu = action;
     }
     else if (action == 3)
     {
         StartUI.Game();
     }
     else
     {
         StartUI.Exit();
     }
 }