Ejemplo n.º 1
0
    // Use this for initialization
    IEnumerator Start()
    {
        yield return(StartCoroutine(Initialize()));

        EasyPatcher patcher = GameObject.Find("EasyPatcherPrefab").GetComponent <EasyPatcher> ();

        EasyPatcher.SetRepogitory("http://localhost/test/");
        yield return(patcher.StartCoroutine(patcher.startPatch()));

        if (EasyPatcher.PatchErrorCount == 0)
        {
            // Load asset.
            yield return(StartCoroutine(Load(assetBundleName, assetName)));

            // Unload assetBundles.
            AssetBundleManager.UnloadAssetBundle(assetBundleName);
        }
        else
        {
            yield break;
        }
    }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 3
0
	void Awake(){
		instance = this;
	}