private void LoadSetting(Voice.Type type, int settingNo = -1) { string str = type.ToString(); AssetBundleData assetBundleData = new AssetBundleData("sound/setting/object/00.unity3d", str.ToLower()); GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)assetBundleData.GetAsset <GameObject>(), this.rootSetting, false); ((Object)gameObject).set_name(str + "_Setting"); Singleton <Sound> .Instance.AudioSettingData((AudioSource)gameObject.GetComponent <AudioSource>(), settingNo); this.settingObjects[(int)type] = gameObject; assetBundleData.UnloadBundle(true, false); }
private void LoadSetting(Manager.Sound.Type type, int settingNo = -1) { string self = type.ToString(); AssetBundleData assetBundleData = new AssetBundleData("sound/setting/object/00.unity3d", self.ToLower()); GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)assetBundleData.GetAsset <GameObject>(), this.rootSetting, false); ((Object)gameObject).set_name(self + "_Setting"); this.AudioSettingData((AudioSource)gameObject.GetComponent <AudioSource>(), settingNo); if (self.CompareParts("gamese", true)) { ; } this.settingObjects[(int)type] = gameObject; assetBundleData.UnloadBundle(true, false); }