更新max

This commit is contained in:
2026-05-22 16:11:40 +08:00
parent dd55b961df
commit c8a5c4f2e5
69 changed files with 3719 additions and 3672 deletions
+4 -4
View File
@@ -25,7 +25,7 @@ public class MaxCmpService
private MaxCmpService() { }
private static Action<MaxCmpError> OnCompletedAction;
private static Action<MaxCmpError> _onCompletedAction;
#if UNITY_EDITOR
#elif UNITY_ANDROID
@@ -50,7 +50,7 @@ public class MaxCmpService
/// <param name="onCompletedAction">Called when the CMP flow finishes showing.</param>
public void ShowCmpForExistingUser(Action<MaxCmpError> onCompletedAction)
{
OnCompletedAction = onCompletedAction;
_onCompletedAction = onCompletedAction;
#if UNITY_EDITOR
var errorProps = new Dictionary<string, object>
@@ -88,10 +88,10 @@ public class MaxCmpService
internal static void NotifyCompletedIfNeeded(Dictionary<string, object> errorProps)
{
if (OnCompletedAction == null) return;
if (_onCompletedAction == null) return;
var error = (errorProps == null) ? null : MaxCmpError.Create(errorProps);
OnCompletedAction(error);
_onCompletedAction(error);
}
}