|
|
|
|
|
|
case Interaction.None: |
|
|
|
return; |
|
|
|
case Interaction.PickUp: |
|
|
|
if(_currentInteractableObject != null) |
|
|
|
if (_currentInteractableObject != null) |
|
|
|
{ |
|
|
|
//raise an event with an item as parameter (to add object to inventory)
|
|
|
|
//Item currentItem = currentInteractableObject.GetComponent<Pickable>.item;
|
|
|
|
|
|
|
_currentInteractableObject = other.gameObject; |
|
|
|
} |
|
|
|
|
|
|
|
private void DisplayInteractionUI () |
|
|
|
private void DisplayInteractionUI() |
|
|
|
{ |
|
|
|
//Raise event to display UI
|
|
|
|
_toggleInteractionUI.RaiseEvent(true, _potentialInteraction); |
|
|
|