private void setupBg() { MasterDataArea areaMaster = MasterFinder <MasterDataArea> .Instance.Find((int)masters[currentIndex].area_id); if (areaMaster != null) { Title = areaMaster.area_name + "\n" + masters[currentIndex].quest_name; idInputField.text = masters[currentIndex].fix_id.ToString(); string backgroundname = MasterDataUtil.GetMasterDataQuestBackgroundName(masters[currentIndex].background); currentId = masters[currentIndex].fix_id; reading = true; // インジケーターを表示 if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingStart(LOADING_TYPE.ASSETBUNDLE); } AssetBundler.Create().Set(backgroundname, backgroundname, (o) => { QuestBg = o.AssetBundle.LoadAsset <Sprite>(backgroundname); reading = false; // インジケーターを閉じる if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingFinish(LOADING_TYPE.ASSETBUNDLE); } }, (s) => { QuestBg = newBattleBg; reading = false; // インジケーターを閉じる if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingFinish(LOADING_TYPE.ASSETBUNDLE); } }).Load(); } }