GameGlobal.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using UnityEngine;
  2. using ET;
  3. using LitJson;
  4. namespace GFGGame
  5. {
  6. public class GameGlobal
  7. {
  8. public static bool isVisitor = false;
  9. public static bool isFirstEntry = 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. //平台
  31. public static int platformId = 1;
  32. public static void Init()
  33. {
  34. cfgName = LauncherConfig.cfgName + "_in";
  35. }
  36. public static string version
  37. {
  38. get
  39. {
  40. return Application.version + "." + VersionController.Instance.PackageVersion;
  41. }
  42. }
  43. }
  44. }