private void OnTriggerExit(Collider other) { if (other.GetComponent <Repairable>() != null) { canRepair = false; zone = null; items.Clear(); } }
private void OnTriggerEnter(Collider other) { if (other.GetComponent <Repairable>() != null) { canRepair = true; zone = other.GetComponent <Repairable>(); items.Clear(); } }