public override void LoadConfig(string text, LoadConfigComplete cb) { FlightInfos = LitJson.JsonMapper.ToObject <List <FlightInfo> >(text); if (cb != null) { cb(FlightInfos.Count > 0 ? true : false); } }
public override void LoadConfig(string text, LoadConfigComplete cb) { buildingInfo = LitJson.JsonMapper.ToObject <List <BuildingInfo> >(text); if (cb != null) { cb(buildingInfo.Count > 0 ? true : false); } }
public override void LoadConfig(string text, LoadConfigComplete cb) { baseConfigList = JsonMapper.ToObject <List <BaseConfigInfo> >(text); if (cb != null) { cb(baseConfigList.Count < 1 ? false : true); } }
public override void LoadConfig(string text, LoadConfigComplete cb) { UpgradeExpList = LitJson.JsonMapper.ToObject <List <UpgradeExpInfo> >(text); if (cb != null) { cb(UpgradeExpList.Count > 0 ? true : false); } }
public virtual void LoadConfig(string text, LoadConfigComplete cb) { }