Пример #1
0
 public override void Update()
 {
     base.Update();
     if (!Freezable.GetIsFrozen())
     {
         AttackNearbyEnemies();
     }
 }
Пример #2
0
 public override void Update()
 {
     base.Update();
     cFireTimer += Time.deltaTime;
     if (cFireTimer > FireTimer)
     {
         cFireTimer = 0f;
         if (!Freezable.GetIsFrozen())
         {
             ShootFireball();
         }
     }
 }
Пример #3
0
 public override void Update()
 {
     base.Update();
     cFireTimer += Time.deltaTime;
     if (cFireTimer > FireTimer)
     {
         cFireTimer = 0f;
         if (!Freezable.GetIsFrozen())
         {
             BeginAttack();
         }
     }
 }