protected override void OnEnter_Attack()
 {
     flameThowerParent.transform.localEulerAngles = new Vector3(0, 0, bossBehaviour.GetCurrentRotation());
     bossBehaviour.RotateTank(flameThowerParent.transform.localEulerAngles.z);
     flameThowerParent.SetActive(true);
     ActivateDamageAreaEffect(true);
     base.OnEnter_Attack();
 }
Exemple #2
0
 protected override void Attack()
 {
     rotator.ActiveFollow(true);
     DOVirtual.DelayedCall((delay_attack / attackRate), () => {
         CannonAttack();
     }).SetLoops(attackRate)
     .OnComplete(() =>
     {
         base.Attack();
     }).OnUpdate(() =>
     {
         float angle = GetAngleFromDirection(bossbehaviour.transform.position, rotator.gameObject.transform.position, true);
         bossbehaviour.RotateTank(angle);
     }).SetId("CanonGKPhase");
 }