Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public Item Fetch(string id)
  2. {
  3. foreach (Item c in _items)
  4. {
  5. if (c.AreYou(id))
  6. {
  7. return c;
  8. }
  9.  
  10. }
  11. return null;
  12. }
  13. public GameObject Locate(string id)
  14. {
  15. if (AreYou(id))
  16. {
  17. return this;
  18. }
  19. if (_inventory.Fetch(id).AreYou(id))
  20. {
  21. return _inventory.Fetch(id);
  22. }
  23. return _inventory.Fetch(id);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement