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"); } } }
// 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"); } } }
public void back() { SceneShift.shiftScene("Main Menu"); }
public void playGame() { Settings.currentPreferences.enableAI = true; SceneShift.shiftScene("Save_Select"); }
public void onClick() { LevelLoader.chosenLevel = lvl; SceneShift.shiftScene("Game Arena"); }
public void goToMainMenu() { globalScripts.GetComponent <Pause_Game> ().unPause(); SceneShift.shiftScene("Main Menu"); }