// Update is called once per frame void Update() { base.TickCooldown(); if (GetAvailable()) { ShooterEnemy.Shoot(); UseAbility(); } }
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(); } } }