GameGlobal.cs 2.3 KB

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