ItemData.cs 786 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * FancyScrollView (https://github.com/setchi/FancyScrollView)
  3. * Copyright (c) 2020 setchi
  4. * Licensed under MIT (https://github.com/setchi/FancyScrollView/blob/master/LICENSE)
  5. */
  6. using UnityEngine;
  7. namespace FancyScrollView.FocusOn
  8. {
  9. class ItemData
  10. {
  11. public string Message { get; }
  12. public Sprite Sprite { get; }
  13. public string Name { get; }
  14. public string TextId { get; }
  15. public int LanguageType { get; }
  16. public ItemData(string message)
  17. {
  18. Message = message;
  19. }
  20. public ItemData(string name, Sprite sprite, string textId,int languageType) {
  21. Sprite = sprite;
  22. Name = name;
  23. TextId = textId;
  24. LanguageType = languageType;
  25. }
  26. }
  27. }