Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     base.TickCooldown();
     if (GetAvailable())
     {
         ShooterEnemy.Shoot();
         UseAbility();
     }
 }
Exemple #2
0
 private void tryToShoot(ShooterEnemy i_Enemy)
 {
     if (i_Enemy.IsAlive && i_Enemy.Visible)
     {
         if (r_RandomBehavior.GetRandomNumber(0, (int)(1 / ChanceToShoot)) == 0)
         {
             i_Enemy.Shoot();
         }
     }
 }