Example #1
0
        private void Fire()
        {
            var proj = new Projectile(Game, this, _aimingVector, _chargeAmount);
            Game.GameObjects.Add(proj);
            _fireEffect.Play();

            _isCharging = false;
            _chargeAmount = 0;
        }
Example #2
0
 public void TakeDamage(Projectile projectile)
 {
     Health -= projectile.Damage;
 }
Example #3
0
 public void TakeDamage(Projectile projectile)
 {
     UpdateScale(0.1f);
 }