void OnTriggerExit(Collider other) { if (other.GetComponent<ProximityItemConnectionPoint>() != null) { inConnectionRange = false; connectToPoint = null; } /* if (inConnectionRange == true) { connectToPoint = null; constructControl.canConnect = false; inConnectionRange = false; constructControl.potentialConnection = null; } */ }
void OnTriggerEnter(Collider other) { ProximityItemConnectionPoint otherPoint = other.GetComponent<ProximityItemConnectionPoint>(); if (otherPoint == null) { return; } //Debug.Log("Detected Collision"); inConnectionRange = true; connectToPoint = otherPoint; /* if (otherPoint != false && constructControl.isHeld == true) { //ConnectToSuppliedPoint(otherPoint); inConnectionRange = true; constructControl.canConnect = true; connectToPoint = otherPoint; constructControl.potentialConnection = this; } */ }