LevelData.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Newtonsoft;
  5. using Newtonsoft.Json;
  6. using System;
  7. namespace DataTools
  8. {
  9. [Serializable]
  10. public class LevelData: DataObject
  11. {
  12. [SerializeField]
  13. [JsonProperty]
  14. private int level;
  15. [SerializeField]
  16. [JsonProperty]
  17. private int experience;
  18. [SerializeField]
  19. [JsonProperty]
  20. private Currency rewards;
  21. [JsonIgnore]
  22. public Currency Rewards
  23. {
  24. get
  25. {
  26. return rewards;
  27. }
  28. set
  29. {
  30. rewards = value;
  31. }
  32. }
  33. [JsonIgnore]
  34. public int Level
  35. {
  36. get
  37. {
  38. return level;
  39. }
  40. set
  41. {
  42. level = value;
  43. }
  44. }
  45. [JsonIgnore]
  46. public int Experience
  47. {
  48. get
  49. {
  50. return experience;
  51. }
  52. set
  53. {
  54. experience = value;
  55. }
  56. }
  57. }
  58. }