m_Script: {fileID: 11500000, guid: b39a296438081ff4c99abec393d12d54, type: 3}
m_Name: PlayerInventory
m_EditorClassIdentifier:
_items: []
_items:
- _item: {fileID: 11400000, guid: 0a7c779a15b2c4143ae2068725b8ece9, type: 2}
Amount: 1
{
if (_onObjectPickUp != null)
Item currentItem = default;
Item currentItem = _currentInteractableObject.GetComponent<CollectibleItem>().GetItem();
_onObjectPickUp.RaiseEvent(currentItem);
Debug.Log("PickUp event raised");
if (_currentInteractableObject.GetComponent<CollectibleItem>())
currentItem = _currentInteractableObject.GetComponent<CollectibleItem>().GetItem();
}
//set current interaction for state machine
currentInteraction = InteractionType.PickUp;
_potentialInteraction = InteractionType.PickUp;
DisplayInteractionUI();
_currentInteractableObject = other.gameObject;
private void DisplayInteractionUI()
private void OnTriggerExit(Collider other)
ResetInteraction();