[M] MAX SDK callback Test

This commit is contained in:
2024-08-09 18:35:08 +08:00
parent 45a213084e
commit 6332ff9055
2 changed files with 29 additions and 16 deletions

View File

@@ -102,7 +102,7 @@ namespace tysdk
var result = new ProductListInfo();
return result;
#elif UNITY_ANDROID
#elif UNITY_ANDROID || UNITY_IOS
var taskSource = new TaskCompletionSource<ProductListInfo>();
callbacks.Add("SKUListResult", (ITYSdkCallback callback) =>
{
@@ -111,9 +111,6 @@ namespace tysdk
UnityBridgeFunc.GetSKUList();
var result = await taskSource.Task;
return result;
#elif UNITY_IOS
var result = new ProductListInfo();
return result;
#endif
}