Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (transform.position.z < -10.0f)
     {
         mm.GoToNextStage();
         Destroy(transform.parent.gameObject);
     }
 }
Beispiel #2
0
 public void StartWait()
 {
     if (squadronIndex >= squadrons.Length && !done)
     {
         mm.GoToNextStage();
         done = true;
         //Destroy(gameObject);
     }
     else
     {
         if ((squadronIndex == lastIntroEnemyIndex) && (mm.GetStage() == MapManger.Stages.INTRO))
         {
             StartNextPhase();
         }
         else
         {
             if ((!instantiatingSubSquads))
             {
                 if (squadronIndex < squadrons.Length)
                 {
                     waitingTime = delayTime[squadronIndex];
                 }
                 waitForDelay = true;
             }
         }
     }
     if (squadronIndex == minibossSquadronIndex)
     {
         mm.NotifyManagerSpawnedMinidboss();
     }
     //Tutorial 1
     if (!firstTutorial)
     {
         firstTutorial = true;
         GameObject.FindGameObjectWithTag("Player").GetComponent <SwitchablePlayerController>().onTutorial = true;
     }
 }
 // Update is called once per frame
 void Update()
 {
     if (transform.position.z < -10.0f && !count)
     {
         count = true;
         mm.GoToNextStage();
     }
     if (count)
     {
         delayBeforeDestroy -= Time.deltaTime;
         if (delayBeforeDestroy < 0.0f)
         {
             CallDestruction();
         }
     }
 }
Beispiel #4
0
 public void BossDone()
 {
     ScoreScript.score = ScoreScript.score + 10000;
     mm.GoToNextStage();
 }