void Start()
 {
     weapon = this.transform.GetComponentInChildren<WeaponHardpoint>();
     //Debug.Log(weapon.name);
     hasTarget = false;
     firing = false;
     compass = this.transform.parent.FindChild("Compass");
 }
 // Use this for initialization
 void Start()
 {
     weapon = this.transform.parent.GetComponentInChildren<WeaponHardpoint>();
     //Debug.Log(this.transform.parent.parent.parent.parent.parent.parent.name);
     ship = this.transform.root.GetComponent<ShipManager>();
     firingPoint = weapon.transform.Find ("FiringPoint");
     //projectile = weapon.projectile;
 }