CustomizeItem.cs 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. using Newtonsoft;
  6. using Newtonsoft.Json;
  7. using Newtonsoft.Json.Converters;
  8. namespace DataTools
  9. {
  10. [Serializable]
  11. public class CustomizeItem: DataObject
  12. {
  13. [JsonProperty]
  14. [SerializeField]
  15. [JsonConverter(typeof(StringEnumConverter))]
  16. public CustomizeType type;
  17. [JsonProperty]
  18. [SerializeField]
  19. public Currency currency;
  20. [JsonProperty]
  21. [SerializeField]
  22. public CustomizeStats stats;
  23. [JsonProperty]
  24. [SerializeField]
  25. public bool colorpicker;
  26. [JsonProperty]
  27. [SerializeField]
  28. public bool shop;
  29. public bool GetColorPicker()
  30. {
  31. return colorpicker;
  32. }
  33. public bool GetShop()
  34. {
  35. return shop;
  36. }
  37. public Currency GetCurrency()
  38. {
  39. return currency;
  40. }
  41. public CustomizeStats GetStats()
  42. {
  43. return stats;
  44. }
  45. public CustomizeType GetCustomizeType()
  46. {
  47. return type;
  48. }
  49. }
  50. }