private bool _isIdle; // 待机 public void Init() { // 取出后台存储所有数据 this.po = HelperTool.LoadJson(Application.streamingAssetsPath + "/SettingConfig.json"); if (null == this.po) { this.po = new SettingConfigData(); } // CheckID this._checkID = po.CheckId; // 游戏币率 this._gameRate = po.GameRate; // 游戏语言版本 0中文 1英文 this._gameLanguage = po.GameLanguage; // 检查点模式 this._ticket = po.Ticket; // 游戏初始时间 this._playTime = po.PlayTime; // 游戏音量 this._gameVolume = po.GameVolume; // 当前剩余币数 this._hasCoin = po.Coin; // 月份信息 this._monthList = po.MonthList; // 总记录 this._totalRecord = po.TotalRecord; CheckIsNewMonth(); //GameConfig.ParsingGameConfig(); }
private int _coin; // 耗币 public void Init() { // 取出后台存储所有数据 this.po = HelperTool.LoadJson(ResUpdateManager.Instance.GetFilePath(GameConfig.SETTING_COINFIG)); if (null == this.po) { this.po = new SettingConfigData(); } // CheckID this._checkID = po.CheckId; // 游戏币率 this._gameRate = po.GameRate; // 游戏语言版本 0中文 1英文 this._gameLanguage = po.GameLanguage; // 游戏难度 this._gameLevel = po.GameDiffculty; // 出票模式 this._ticketModel = po.TicketModel; // 出票分数 this._ticketScore = SettingConfig.scorePreTicket[this._ticketModel]; // 游戏音量 this._gameVolume = po.GameVolume; // 当前剩余币数 this._hasCoin = po.Coin; // 当前剩余票数 //this._hasTicket = po.Ticket; // 是否显示水标 0显示 1不显示 this._watershow = po.ShowWater; // 月份信息 this._monthList = po.MonthList; // 总记录 this._totalRecord = po.TotalRecord; // 获取玩家剩余币数 for (int i = 0; i < GameConfig.GAME_CONFIG_PLAYER_COUNT; i++) { Main.PlayerManager.getPlayer(i).ChangeCoin(this._hasCoin[i]); } // 屏幕宽高 _screenInfo = po.ScreenInfo; // 玩家校验屏幕宽高 _screenInfoList = po.ScreenInfoList; // 玩家校验点X this._pointXList = po.PointX; this._pointYList = po.PointY; CheckIsNewMonth(); }