private void OnTriggerExit(Collider other) { if (_itemToPick != null && _itemToPick.name == other.name) { _itemToPick = null; HUDEvent.CloseMessage(); } }
private void OnTriggerExit(Collider other) { if (other.CompareTag("Interactable")) { _itemInteract = null; HUDEvent.CloseMessage(); } }
public void PickItem() { if (_itemToPick != null) { _inventory.PickItem(_itemToPick); _itemToPick = null; HUDEvent.CloseMessage(); } }