コード例 #1
0
ファイル: Bullet.cs プロジェクト: Aryn/Mobile-Fortress
 public Bullet(Vector3 position, Quaternion orientation, Vector3 velocity, BulletData data)
 {
     Position = position;
     Orientation = orientation;
     Velocity = velocity;
     Data = data;
     Sector.Redria.Bullets.Add(this);
 }
コード例 #2
0
ファイル: ShipObj.cs プロジェクト: Aryn/Mobile-Fortress
 public void BulletStrike(BulletData bullet, float velocity)
 {
     var damage = bullet.Power;// * (velocity / bullet.MuzzleVel);
     TakeDamage(damage);
 }