Пример #1
0
 public void playWithSelectedSave()
 {
     if (SaveSlots.currentSaveSlots.chosenSave != null)
     {
         SaveSlots.currentSaveSlots.blueTeamSave = SaveSlots.currentSaveSlots.chosenSave;
         SaveSlots.currentSaveSlots.redTeamSave  = SaveSlots.currentSaveSlots.chosenSave;
         if (Settings.currentPreferences.enableAI)
         {
             SceneShift.shiftScene("Level Select");
         }
         else
         {
             SceneShift.shiftScene("Game Arena");
         }
     }
 }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     if (gameTimer.timesUp)
     {
         if (goalTime < 0)
         {
             goalTime = Time.realtimeSinceStartup + gracePeriod;
         }
     }
     if (gameTimer.timesUp && Input.anyKeyDown && Time.realtimeSinceStartup >= goalTime)
     {
         pauser.unPause();
         goalTime = -1;
         if (Settings.currentPreferences.enableAI)
         {
             SceneShift.shiftScene("Level Select");
         }
         else
         {
             SceneShift.shiftScene("Game Arena");
         }
     }
 }
Пример #3
0
 public void back()
 {
     SceneShift.shiftScene("Main Menu");
 }
Пример #4
0
 public void playGame()
 {
     Settings.currentPreferences.enableAI = true;
     SceneShift.shiftScene("Save_Select");
 }
Пример #5
0
 public void onClick()
 {
     LevelLoader.chosenLevel = lvl;
     SceneShift.shiftScene("Game Arena");
 }
Пример #6
0
 public void goToMainMenu()
 {
     globalScripts.GetComponent <Pause_Game> ().unPause();
     SceneShift.shiftScene("Main Menu");
 }