| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | using UnityEngine;using ET;using LitJson;namespace GFGGame{    public class GameGlobal    {        public static bool isVisitor = false;        public static bool isFirstEntry = false;        public static string cfgName;        //防沉迷开关        public static bool antiAddiction = true;        public static long userId = 0;        public static int userAge = 0;        public static bool skipGuide;        public static bool skipCheckOpen;//跳过功能开启检查        public static bool isEnterGame = false;        //ET        public static Scene zoneScene;        /// <summary>        /// 初始数据是否已处理        /// </summary>        public static bool DataInited;        public static NumericComponent myNumericComponent;        public static int lastLoginTime;//上次登录时间        public static bool isLogon;//是否是重新登录        //平台        public static int platformId = 1;        public static void Init()        {            cfgName = LauncherConfig.cfgName + "_in";        }        public static string version        {            get            {                return Application.version + "." + VersionController.Instance.PackageVersion;            }        }    }}
 |