Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public void DrawInventoryItems(SpriteBatch sb)
  2. {
  3. foreach(InventorySlot slot in itemSlots)
  4. {
  5. if (slot.item is Twig)
  6. {
  7. sb.Draw(slot.item.Texture, Position, slot.SlotRectangle, Color.White);
  8. }
  9.  
  10. if (slot.item is Rock)
  11. {
  12. sb.Draw(slot.item.Texture, Position, slot.SlotRectangle, Color.White);
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement