- Home /
Question by
Steve Cogbill · May 04, 2013 at 05:42 PM ·
gameobjectdestroycollectionsbattery
Collect and Use Object
I want to able to collect a gameobject (which will be a battery in my case) and then make it so that every time the right mouse button is clicked, one of the batteries is used up. Now I don't really need a whole inventory for this but it would be nice to have a little counter in the corner of the screen to tell you how many batteries you have. Thanks for any help! Steve
Comment
Your answer
Follow this Question
Related Questions
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
How to detect if a GameObject has been destroyed? 3 Answers
when instantiate object then game stop for some time 1 Answer
Destroy object when transform.position.x > 10. 1 Answer
Destroy(gameObject) does not work 2 Answers