Esempio n. 1
0
    private void Update()
    {
        if (Commons.PowerUpManager.HasPowerUp(PowerUp.Invincibility))
        {
            return;
        }

        //Shoot the player as quickly as possible when spotted
        if (_spotter.InPursuit)
        {
            if (WeaponInstance.CanFire(ignoreDurability: true))
            {
                _shooter.SetAim(_spotter.BlindChaseDirection);
                WeaponInstance.Fire(_shooter);
            }
        }
    }