cptscrimshaw
Member
What would you recommend as the best way to handle the following situation:
I didn't see anything in the documentation or code comments that spoke to this, but apologies if I missed it!
Thoughts/ideas?
Thanks!
- There's a gameobject that the player can pick up that contains Interactable.cs, ItemObject.cs, and ItemPickup.cs tied to an action button (let's say spacebar).
- The player can also perform actions, such as digging a hole, (unrelated to UIS) using the same action button (spacebar). These are currently called in a player script with the Update() monobehavior using a simple GetButtonDown method.
- Ideally, I'd like the player to be able to pickup the item, but *not* execute the action in the player script Update() method. Then once the item is picked up, the next time they hit the action button, they can perform the action in the player script.
I didn't see anything in the documentation or code comments that spoke to this, but apologies if I missed it!
Thoughts/ideas?
Thanks!