Inventory System - picking up items
I have created an Inventory system and it works fine until it comes to picking up the items. I am creating a 2D hidden object game and i want code for when the player clicks the item in the environment, it is destroyed/adds into the Inventory. i know it sounds simple but all the codes i have used simply do not work. Not only that but as this is the players script where would i attach it to? the camera as its 2D or do i create another object?
Your answer
![](https://koobas.hobune.stream/wayback/20220612065641im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[C# Scripting] Set the rotation of the player, when another script access it at the same time. 0 Answers
Why is my Player game object not rotating with mouse movement in 'Survival Shooter' unity project 10 Answers
Who can help me with these error messages? 0 Answers
Get coordinates of mouse-click on plane 1 Answer
TopDown Look at mouse 0 Answers