GameGlobal.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. public static int lastLoginTime;//上次登录时间
  23. //平台
  24. public static int platformId = 1;
  25. public static void Init()
  26. {
  27. cfgName = LauncherConfig.cfgName + "_in";
  28. }
  29. public static string version
  30. {
  31. get
  32. {
  33. return Application.version + "." + VEngine.Versions.ManifestsVersion;
  34. }
  35. }
  36. }
  37. }