GameGlobal.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. public static Unit myUnit;
  21. public static NumericComponent myNumericComponent;
  22. //平台
  23. public static int platformId = 1;
  24. public static void Init()
  25. {
  26. cfgName = LauncherConfig.cfgName + "_in";
  27. }
  28. public static string version
  29. {
  30. get
  31. {
  32. return Application.version + "." + VEngine.Versions.ManifestsVersion;
  33. }
  34. }
  35. }
  36. }