GameGlobal.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using UnityEngine;
  2. using ET;
  3. using LitJson;
  4. namespace GFGGame
  5. {
  6. public class GameGlobal
  7. {
  8. //开服时间,单位毫秒
  9. public static long OpenServerTime;
  10. public static bool isVisitor = false;
  11. public static string cfgName;
  12. //防沉迷开关
  13. public static bool antiAddiction = true;
  14. public static long userId = 0;
  15. public static int userAge = 0;
  16. public static bool skipGuide;
  17. public static bool skipCheckOpen;//跳过功能开启检查
  18. public static bool isEnterGame = false;
  19. //ET
  20. public static Scene zoneScene;
  21. /// <summary>
  22. /// 初始数据是否已处理
  23. /// </summary>
  24. public static bool PreDataInited;
  25. //其他数据已处理
  26. public static bool AfterDataInited;
  27. public static NumericComponent myNumericComponent;
  28. public static int lastLoginTime;//上次登录时间
  29. public static bool AutoSevenDayLoginView = true;
  30. public static bool AutoDailySignView = true;
  31. public static bool AutoSpecialOfferGiftBoxView = true;
  32. public static bool AutoAcitivtyTipsLoginView = true;
  33. public static bool AutoMonthlyCardView = true;
  34. public static bool AutoNewPlayersTips = true;
  35. public static bool NewPlayerOnceTips = true;
  36. public static bool AutoZGTHDCTips = true;
  37. public static bool AutoZGTHTips = true;
  38. public static bool AutoPearRebateTips = true;
  39. public static bool AutoZCJBTips = true;
  40. //用于标记自动检测打开界面流程已执行完毕
  41. public static bool AutoShowCompleted;
  42. //平台
  43. public static int platformId = 1;
  44. //最大显示充值物品的订单时间差
  45. public static int maxShowOrderTime = GameConst.DEFAULT_MAX_ORDER_TIME;
  46. //游戏暂停时间
  47. public static long pauseTime;
  48. //提示过的版本不再提示
  49. public static string promotedVersion;
  50. public static void Init()
  51. {
  52. cfgName = LauncherConfig.cfgName + "_in";
  53. }
  54. public static string version
  55. {
  56. get
  57. {
  58. return Application.version + "." + VersionController.Instance.PackageVersion;
  59. }
  60. }
  61. }
  62. }