Profile.cs 1.1 KB

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