private void LateUpdate() { if (TeleporterActivated == true) { AMS_UniversalFunctions.GoToMissionBreifing(8, "Tutorial"); } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player") { AMS_UniversalFunctions.GoToResultsScreen(true); } }
public void LastHive() { foreach (Transform spawner in spawnLocations) { Destroy(spawner.gameObject); } if (GameObject.FindObjectsOfType <AMS_Hive>().Length == 1) { //Debug Player wins Debug.Log("Player destroyed all hives"); AMS_UniversalFunctions.GoToResultsScreen(true); } }//cleans up and checks if this was the last hive
IEnumerator SceneLoad() { yield return(new WaitForSeconds(5f)); if (DidThePlayerWin == true) { AMS_UniversalFunctions.GoToResultsScreen(true); } else if (DidThePlayerLose == true) { AMS_UniversalFunctions.GoToResultsScreen(false); } }
private void OnTriggerEnter(Collider other) { AMS_UniversalFunctions.GoToResultsScreen(true); }
private void BeatLevel() { Debug.Log("I guess cheetahs do win"); AMS_UniversalFunctions.GoToResultsScreen(true); }
public void Level7() { AMS_UniversalFunctions.GoToMissionBreifing(7, "ArenaCombat"); ClickSound(); //levelIndex = 3; }
public void Level6() { AMS_UniversalFunctions.GoToMissionBreifing(6, "TheSkyFalls"); ClickSound(); //levelIndex = 3; }
public void Level5() { AMS_UniversalFunctions.GoToMissionBreifing(5, "TheHiveLevel"); ClickSound(); //levelIndex = 3; }
public void Level4() { AMS_UniversalFunctions.GoToMissionBreifing(4, "WaveLevel_3"); ClickSound(); //levelIndex = 4; }
public void Level3() { AMS_UniversalFunctions.GoToMissionBreifing(3, "EasyHive"); ClickSound(); //levelIndex = 3; }
public void Level2() { AMS_UniversalFunctions.GoToMissionBreifing(2, "WaveLevel 2"); ClickSound(); //levelIndex = 3; }
public void Level1() { AMS_UniversalFunctions.GoToMissionBreifing(1, "WaveLevel"); ClickSound(); //levelIndex = 2; }
public void Tutorial() { AMS_UniversalFunctions.GoToMissionBreifing(8, "Tutorial"); ClickSound(); }