- Home /
This question was
closed Apr 27, 2014 at 11:04 AM by
meat5000 for the following reason:
The question is self answered
Question by
GoGamingJoe · Apr 21, 2014 at 09:11 AM ·
listfindadd
I Dont Get How I Use List.Find
Char_Con_Temp.Instance.Inventory.Add(GameManager.Instance.AllItems.Find<Water Bottel>())
I'm trying to add a water bottle when the player is near the sea or lake and it worked great but now I want to add a waterbottel in place of the Item that was used. Thanks
Comment
For one you have a space between Water and Bottle. If that's one class, there shouldn't be a space, and if it's two there should be a comma in=between...
Answer by GoGamingJoe · Apr 27, 2014 at 11:01 AM
Thanks Got it working I had to find the item like Item<= Item ""
Follow this Question
Related Questions
A node in a childnode? 1 Answer
how to add game object to custom class with for loop 2 Answers
Get a list of children (in order) 1 Answer
How to find a Class by value 2 Answers
Searching a List of GameObjects by name 2 Answers