예제 #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");
 }