// 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; } }
void Awake() { instance = this; }
void Awake(){ instance = this; }