示例#1
0
文件: Player.cs 项目: brycekahle/gpp
        private void Fire()
        {
            var proj = new Projectile(Game, this, _aimingVector, _chargeAmount);
            Game.GameObjects.Add(proj);
            _fireEffect.Play();

            _isCharging = false;
            _chargeAmount = 0;
        }
示例#2
0
文件: Player.cs 项目: brycekahle/gpp
 public void TakeDamage(Projectile projectile)
 {
     Health -= projectile.Damage;
 }
示例#3
0
文件: Planet.cs 项目: brycekahle/gpp
 public void TakeDamage(Projectile projectile)
 {
     UpdateScale(0.1f);
 }