public void OpenPatch(string patch, Action <int> ReceivePatchId) { string path; // On Android, we need to extract the .pd file from streaming assets #if UNITY_ANDROID && !UNITY_EDITOR path = Application.persistentDataPath; StartCoroutine(CopyStreamingAssetToPersistentData(patch, () => { ReceivePatchId(LibPD.LibPD_OpenPatch(pdIndex, patch, path)); })); #else path = Application.streamingAssetsPath; ReceivePatchId(LibPD.LibPD_OpenPatch(pdIndex, patch, path)); #endif }