Example #1
0
    private void begin()
    {
        if (!_dead)
        {
            _begun = true;
            _stateMachine.BeginWithInitialState(SPINNING_STATE);
            enterSpinning();

            for (int i = 0; i < this.SubBosses.Length; ++i)
            {
                WeaponAutoFire fire = this.SubBosses[i].GetComponent <WeaponAutoFire>();
                if (fire != null)
                {
                    fire.Paused = false;
                }
            }
        }
    }
Example #2
0
 public void OnDeath(int hp)
 {
     _dead = true;
     while (_shooters.Count > 0)
     {
         _shooters[_shooters.Count - 1].Kill(0.0f);
     }
     for (int i = 0; i < this.SubBosses.Length; ++i)
     {
         this.SubBosses[i].GetComponent <LerpRotation>().HaltRotation();
         this.SubBosses[i].GetComponent <LerpMovement>().HaltMovement();
     }
     for (int i = 0; i < this.SubBosses.Length; ++i)
     {
         WeaponAutoFire fire = this.SubBosses[i].GetComponent <WeaponAutoFire>();
         if (fire != null)
         {
             fire.Paused = true;
         }
     }
     _timedCallbacks.AddCallback(this, triggerDeaths, this.InitialDeathDelay);
 }