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

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