Пример #1
0
    public IABSceneManager(string sceneName)
    {
        string path = Application.persistentDataPath + "/AssetBundle/" + sceneName + "Record.txt";

        abManager = new IABManager(sceneName);
        allAsset  = new Dictionary <string, string>();
        ReadConfig(path);
    }
Пример #2
0
    /// <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);
    }
Пример #3
0
    /// <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);
    }
Пример #4
0
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    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.");
        }
    }
Пример #5
0
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    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.");
        }
    }
Пример #6
0
 public IABScenceManager(string scenceName)
 {
     abManager = new IABManager(scenceName);
 }
Пример #7
0
 public IABSceneManager(string sceneName)
 {
     this.sceneName = sceneName;
     allAssets      = new Dictionary <string, string>();
     abManager      = new IABManager(sceneName);
 }
Пример #8
0
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    void Awake()
    {
        instance = this;
    }
Пример #9
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 void Awake()
 {
     instance = this;
 }
Пример #10
0
 public IABSceneManager(string sceneName)
 {
     mABManager = new IABManager(sceneName);
 }
Пример #11
0
 void Awake()
 {
     instance = this;
     StartCoroutine(IABManifestLoader.Instance.LoadManifest());
 }