Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public Sprite sprite;
  2.  
  3. public Item(Sprite sprite)
  4. {
  5. this.sprite = sprite;
  6. }
  7.  
  8. public Sprite spriteWood;
  9. public Sprite spriteEmpty;
  10.  
  11. public Item empty;
  12. public Item wood;
  13.  
  14. void Start()
  15. {
  16. empty = new Item(spriteEmpty);
  17. wood = new Item(spriteWood);
  18.  
  19. Debug.Log(empty.ToString());
  20. Debug.Log(empty.sprite.ToString());
  21. }
Add Comment
Please, Sign In to add comment