Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Item Fetch(string id)
- {
- foreach (Item c in _items)
- {
- if (c.AreYou(id))
- {
- return c;
- }
- }
- return null;
- }
- public GameObject Locate(string id)
- {
- if (AreYou(id))
- {
- return this;
- }
- if (_inventory.Fetch(id).AreYou(id))
- {
- return _inventory.Fetch(id);
- }
- return _inventory.Fetch(id);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement