MainDataManager.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. namespace GFGGame
  2. {
  3. public class MainDataManager : SingletonBase<MainDataManager>
  4. {
  5. private int _viewType = 0;
  6. public void Clear()
  7. {
  8. _needUpdateProxyData = true;
  9. }
  10. /// <summary>
  11. /// 界面类型,0:主界面,1:二级界面
  12. /// </summary>
  13. public int ViewType
  14. {
  15. get
  16. {
  17. return _viewType;
  18. }
  19. set
  20. {
  21. _viewType = value;
  22. }
  23. }
  24. private bool _canSwipe = true;
  25. /// <summary>
  26. /// 是否可以拖动
  27. /// </summary>
  28. public bool CanSwipe
  29. {
  30. get
  31. {
  32. return _canSwipe;
  33. }
  34. set
  35. {
  36. _canSwipe = value;
  37. }
  38. }
  39. private bool _needUpdateProxyData = true;
  40. public bool needUpdateProxyData
  41. {
  42. get
  43. {
  44. return _needUpdateProxyData;
  45. }
  46. set
  47. {
  48. _needUpdateProxyData = value;
  49. }
  50. }
  51. /// <summary>
  52. /// 收纳状态,0:已收纳,1:二级界面
  53. /// </summary>
  54. private int _StorageStatus = 0;
  55. public int StorageStatus
  56. {
  57. get
  58. {
  59. return _StorageStatus;
  60. }
  61. set
  62. {
  63. _StorageStatus = value;
  64. }
  65. }
  66. }
  67. }