Exemplo n.º 1
0
 public override string Update()
 {
     if (boss1Pot.playerEnteredArena)
     {
         if (boss1Pot.GetArmor() <= 0)
         {
             return("Boss1Pot+Armored_Charging");
         }
         else /*if (boss1Pot.CanSpawn()) */
         {
             return("Boss1Pot+Armored_Spawning");
         }
     }
     return(null);
 }
Exemplo n.º 2
0
        public override string Update()
        {
            if (boss.GetArmor() > 0)
            {
                //if (!boss.CanSpawn()) {
                //    return "Boss1Pot+Armored_Idle";
                //}

                if (numberOfShotsFired < 3)
                {
                    if (!firing && timer >= 2.0f)
                    {
                        boss.StartCoroutine(LaunchPot());
                        timer = 0;
                    }
                    else if (!firing)
                    {
                        timer += Time.deltaTime;
                    }
                }
                else if (numberOfShotsLanded >= 3)
                {
                    if ((Target.transform.position - owner.transform.position).magnitude <= 50.0f)
                    {
                        return("Boss1Pot+Armored_Spawning");
                    }
                    else
                    {
                        if (!firing && timer >= 2.0f)
                        {
                            boss.StartCoroutine(LaunchPot());
                            timer = 0.0f;
                        }
                        else if (!firing)
                        {
                            timer += Time.deltaTime;
                        }
                    }
                }
            }
            else
            {
                return("Boss1Pot+Armored_Charging");
            }
            return(null);
        }
Exemplo n.º 3
0
 public override string Update()
 {
     if (!firing && numberOfBurstsFired != 3)
     {
         if (numberOfBurstsFired == 0)
         {
             c = boss.StartCoroutine(LaunchBurst());
         }
         else if (!firing && timer >= 1.5f)
         {
             c     = boss.StartCoroutine(LaunchBurst());
             timer = 0.0f;
         }
         else if (!firing)
         {
             timer += Time.deltaTime;
         }
     }
     else if (numberOfBurstsFired == 3)
     {
         timer += Time.deltaTime;
         if (timer >= 2.0f)
         {
             if (boss.GetArmor() <= 0)
             {
                 timer = 0.0f;
                 return("Boss1Pot+Armored_Charging");
             }
             else
             {
                 timer = 0.0f;
                 return("Boss1Pot+Armored_Shooting");
             }
         }
     }
     else if ((Target.transform.position - owner.transform.position).magnitude >= 50.0f)
     {
         boss.StopCoroutine(c);
         return("Boss1Pot+Armored_Shooting");
     }
     return(null);
 }