public bool IsFiring(ShipWeapon weapon) { if (weapon == null) { return(false); } return(weapon.IsFiring()); }
public bool IsInFireArc(ShipWeapon weapon, GameObject target) { if (weapon == null) { return(false); } return(weapon.IsInFireArc(target, this.transform)); }
public void FireAt(ShipWeapon weapon, GameObject target = null) { if (weapon == null) { return; } weapon.FireAt(target); }
public void StopFiring(ShipWeapon weapon) { if (weapon == null) { return; } weapon.StopFiring(); }
public void LoadWeapon(ShipWeapon weapon) { if (weapon == null) { return; } weapon.LoadWeapon(); if (this.Reticle != null) { this.Reticle.SetScale(weapon.GetReticleSize()); } this.LoadedWeapon = weapon; }