Exemplo n.º 1
0
 public void cancelBackToMenu()
 {
     esctomenu = false;
     esctomenupanel.SetActive(false);
     currentselectedbutton = null;
     movement = FindObjectOfType<Movement>().GetComponent<Movement>();
     movement.onMenuEnd();
 }
Exemplo n.º 2
0
 public void cancelQuit()
 {
     inquit = false;
     //inmenu = true;
     quitpanel.SetActive(false);
     currentselectedbutton = null;
     if (quitfromingame)
     {
         movement = FindObjectOfType<Movement>().GetComponent<Movement>();
         movement.onMenuEnd();
     }
 }
Exemplo n.º 3
0
 public void startNormalMode()
 {
     movement = FindObjectOfType<Movement>().GetComponent<Movement>();
     mode = 1;
     modeselectpanel.SetActive(false);
     pickupspawning.resetGame();
     pickupspawning.spawnFirstPickup();
     movement.onMenuEnd();
     ps.shipspawned = false;
     ca.goalsAvailable = true;
     compassBg.SetActive(true);
 }
Exemplo n.º 4
0
 public void startModeSelect()
 {
     currentselectedbutton = null;
     movement = FindObjectOfType<Movement>().GetComponent<Movement>();
     movement.onMenuEnd();
     inmenu = false;
     mainmenupanel.SetActive(false);
     modeselectpanel.SetActive(true);
     ingamepanel.SetActive(true);
     lvlm.setSmallLevel();
     sharkspawner.resetSharks();
 }