private void LateUpdate()
 {
     if (TeleporterActivated == true)
     {
         AMS_UniversalFunctions.GoToMissionBreifing(8, "Tutorial");
     }
 }
Exemple #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         AMS_UniversalFunctions.GoToResultsScreen(true);
     }
 }
Exemple #3
0
 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);
        }
    }
Exemple #5
0
 private void OnTriggerEnter(Collider other)
 {
     AMS_UniversalFunctions.GoToResultsScreen(true);
 }
Exemple #6
0
 private void BeatLevel()
 {
     Debug.Log("I guess cheetahs do win");
     AMS_UniversalFunctions.GoToResultsScreen(true);
 }
Exemple #7
0
 public void Level7()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(7, "ArenaCombat");
     ClickSound();
     //levelIndex = 3;
 }
Exemple #8
0
 public void Level6()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(6, "TheSkyFalls");
     ClickSound();
     //levelIndex = 3;
 }
Exemple #9
0
 public void Level5()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(5, "TheHiveLevel");
     ClickSound();
     //levelIndex = 3;
 }
Exemple #10
0
 public void Level4()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(4, "WaveLevel_3");
     ClickSound();
     //levelIndex = 4;
 }
Exemple #11
0
 public void Level3()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(3, "EasyHive");
     ClickSound();
     //levelIndex = 3;
 }
Exemple #12
0
 public void Level2()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(2, "WaveLevel 2");
     ClickSound();
     //levelIndex = 3;
 }
Exemple #13
0
 public void Level1()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(1, "WaveLevel");
     ClickSound();
     //levelIndex = 2;
 }
Exemple #14
0
 public void Tutorial()
 {
     AMS_UniversalFunctions.GoToMissionBreifing(8, "Tutorial");
     ClickSound();
 }