void OnTriggerEnter(Collider other) { if (other.tag == "hardpoint") { IsColliding = true; Collidewith = other.GetComponent <hardpoint>(); } }
// Use this for initialization void Start() { assignedHardpoint = transform.parent.GetComponent <hardpoint>(); shipCombat = transform.parent.parent.GetComponent <shipCombat>(); }
void Start() { childHardpoint = GetComponentInChildren <hardpoint>(); hardpointOffset = childHardpoint.transform.localPosition; }
void OnTriggerExit() { IsColliding = false; Collidewith = null; }