public void LoadDescriptor() { statusText.SetStatus("Loading from descriptor. Please wait..."); mainCanvas.interactable = false; //DescriptorLoaderUtility.LoadDescriptor(pathField.text, OnLoadingProcessFinished, OnLoadingProcessException); Thread loadingThread = new Thread(() => DescriptorLoaderUtility.LoadDescriptor(pathField.text, OnLoadingProcessFinished, OnLoadingProcessException)); loadingThread.Start(); }
//Reading from Application.streamingAssetsPath. public void LoadTestGame() { StartCoroutine(DescriptorLoaderUtility.LoadTestDescriptor("AwesomeTestGame.zip", OnLoadingProcessFinished, OnLoadingProcessException)); }