Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void DrawInventoryItems(SpriteBatch sb)
- {
- foreach(InventorySlot slot in itemSlots)
- {
- if (slot.item is Twig)
- {
- sb.Draw(slot.item.Texture, Position, slot.SlotRectangle, Color.White);
- }
- if (slot.item is Rock)
- {
- sb.Draw(slot.item.Texture, Position, slot.SlotRectangle, Color.White);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement