public void SetUserFacility(UserFacility userFacility) { this.userFacility = userFacility; int num = userFacility.level + 1; FacilityM facilityMaster = FarmDataManager.GetFacilityMaster(userFacility.facilityId); FacilityUpgradeM facilityUpgradeMaster = FarmDataManager.GetFacilityUpgradeMaster(userFacility.facilityId, num); this.SetPossessionMoney(facilityUpgradeMaster); this.detail.text = FarmDataManager.GetFacilityDescription(userFacility.facilityId, userFacility.level); this.timeDetail.text = facilityUpgradeMaster.upgradeTime.ToBuildTime(); this.facilityName.text = string.Format(StringMaster.GetString("FacilityInfoLv"), facilityMaster.facilityName, num); NGUIUtil.ChangeUITextureFromFile(this.thumbnail, facilityMaster.GetIconPath(), false); string facilityEffectDetail = FarmDataManager.GetFacilityEffectDetail(userFacility.facilityId, num); this.effectTitle.text = facilityMaster.popDescription; this.effectDetail.text = string.Format(facilityMaster.popDetails, facilityEffectDetail); }