public IABSceneManager(string sceneName) { string path = Application.persistentDataPath + "/AssetBundle/" + sceneName + "Record.txt"; abManager = new IABManager(sceneName); allAsset = new Dictionary <string, string>(); ReadConfig(path); }
/// <summary> /// 读取场景配置文件 /// </summary> /// <param name="scenceName"></param> public void ReadConfiger(string scenceName) { string textFileName = "Record.txt"; string path = IPathTool.GetAssetBundlePath() + "/" + scenceName + textFileName; abManager = new IABManager(scenceName); ReadConfig(path); }
/// <summary> /// 场景名字 SceneOne /// </summary> /// <param name="fileName"></param> public void ReadConfiger(string scenename) { string path = IPathTools.GetAssetBundlePath() + "/" + scenename + "Record.txt"; allAsset = new Dictionary <string, string>(); abManager = new IABManager(scenename); ReadConfig(path); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Start() { GameObject go = GameObject.Find("IABManager"); textPrice = transform.GetChild(0).GetComponent<Text>(); if(go!=null){ iabManager = go.GetComponent<IABManager>(); }else{ Debug.Log("ERROR: No se encuentra el objeto IABManager"); } if(iabManager.dictPrices.ContainsKey(item)){ textPrice.text = iabManager.dictPrices[item]; }else if(Application.platform!=RuntimePlatform.WindowsEditor && Application.platform!=RuntimePlatform.OSXEditor){ Debug.Log("No se encuentra el item: "+item+" en el diccionario."); } }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Start() { GameObject go = GameObject.Find("IABManager"); textPrice = transform.GetChild(0).GetComponent <Text>(); if (go != null) { iabManager = go.GetComponent <IABManager>(); } else { Debug.Log("ERROR: No se encuentra el objeto IABManager"); } if (iabManager.dictPrices.ContainsKey(item)) { textPrice.text = iabManager.dictPrices[item]; } else if (Application.platform != RuntimePlatform.WindowsEditor && Application.platform != RuntimePlatform.OSXEditor) { Debug.Log("No se encuentra el item: " + item + " en el diccionario."); } }
public IABScenceManager(string scenceName) { abManager = new IABManager(scenceName); }
public IABSceneManager(string sceneName) { this.sceneName = sceneName; allAssets = new Dictionary <string, string>(); abManager = new IABManager(sceneName); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { instance = this; }
public IABSceneManager(string sceneName) { mABManager = new IABManager(sceneName); }
void Awake() { instance = this; StartCoroutine(IABManifestLoader.Instance.LoadManifest()); }