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