示例#1
0
 public void AddWeapon(WeaponCombatModule module)
 {
     module.system = this;
     weapons.Add(module);
     ship.modules.Add(module);
     ship.rigidbody.mass += module.stats.mass;
 }
示例#2
0
 public void AddWeapon(WeaponCombatModule module)
 {
     module.system = this;
     weapons.Add(module);
     ship.modules.Add(module);
     ship.rigidbody.mass += module.stats.mass;
 }
示例#3
0
 public void RemoveWeapon(WeaponCombatModule module)
 {
     weapons.Remove(module);
     ship.modules.Remove(module);
     module.system = null;
     ship.rigidbody.mass -= module.stats.mass;
     ship.CalcBounds();
 }
示例#4
0
 public void RemoveWeapon(WeaponCombatModule module)
 {
     weapons.Remove(module);
     ship.modules.Remove(module);
     module.system        = null;
     ship.rigidbody.mass -= module.stats.mass;
     ship.CalcBounds();
 }