fix:1、同步ios修复的bug

This commit is contained in:
2026-07-01 10:26:18 +08:00
parent 6ff428bdf2
commit af7617c352
1080 changed files with 2059 additions and 484310 deletions
+29 -28
View File
@@ -34,21 +34,21 @@ namespace ChillConnect
public static void Init()
{
#if !UNITY_EDITOR
// // 注册 ab事件,0或1,0为自然量版本,1为激励版本
// RgfCDfHLhn9WSDK_Utility.Instance.RegistIosParam(i =>
// {
// SuperApplication.Instance.attribution = i == 0 ? "organic" : "non_organic";
// Debug.Log($"ios ab param : {i} attribution=== {SuperApplication.Instance.attribution}");
// NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
//
// });
//
// void GameConfig(bool result, string config)
// {
// Debug.Log($"************* game config result : {result}, config : {config}");
// }
// // SDK初始化方法
// RgfCDfHLhn9WSDK_Utility.Instance.Init(null, null, GameConfig);
// 注册 ab事件,0或1,0为自然量版本,1为激励版本
NCWWA6A0SDK_Manager.Instance.RegistIosParam(i =>
{
SuperApplication.Instance.attribution = i == 0 ? "organic" : "non_organic";
Debug.Log($"ios ab param : {i} attribution=== {SuperApplication.Instance.attribution}");
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
});
void GameConfig(bool result, string config)
{
Debug.Log($"************* game config result : {result}, config : {config}");
}
// SDK初始化方法
NCWWA6A0SDK_Manager.Instance.Init(null, null, GameConfig);
#endif
}
@@ -56,7 +56,7 @@ namespace ChillConnect
// public static bool CheckInterstitialReady()
// {
// return RgfCDfHLhn9WSDK_Utility.Instance.IsInterReady();
// return NCWWA6A0SDK_Manager.Instance.IsInterReady();
// }
#region 广
public static UnityAction<bool> onInterstitialAdCompleted;
@@ -67,13 +67,13 @@ namespace ChillConnect
// if (CheckInterstitialReady())
// {
// Debug.Log($"广告已经准备好,播放");
// // RgfCDfHLhn9WSDK_Utility.Instance.ShowInter(placement, () =>
// // {
// // DOVirtual.DelayedCall(0.1f, () =>
// // {
onCompleted?.Invoke(true);
// // });
// // });
// NCWWA6A0SDK_Manager.Instance.ShowInter(placement, () =>
// {
// DOVirtual.DelayedCall(0.1f, () =>
// {
// onCompleted?.Invoke(true);
// });
// });
// }
// else
// {
@@ -126,21 +126,21 @@ namespace ChillConnect
private static string _placement = "";
// public static bool CheckRewardedReady()
// {
// return RgfCDfHLhn9WSDK_Utility.Instance.IsVideoReady();
// return NCWWA6A0SDK_Manager.Instance.IsVideoReady();
// }
public static void ShowVideo(string placement = "DefaultVideo", UnityAction<bool> onCompleted = null)
{
onVideoAdCompleted = onCompleted;
_placement = placement;
// #if UNITY_EDITOR
#if UNITY_EDITOR
onVideoAdCompleted?.Invoke(true);
// #else
#else
TrackKit.SendEvent(Property.adEvent,Property.watch_ad_people);
TrackKit.SendEvent(Property.adEvent,Property.Rewarded_videos_trigger_number);
// if (CheckRewardedReady())
// {
// RgfCDfHLhn9WSDK_Utility.Instance.ShowRewardVideo(_placement, b =>
// NCWWA6A0SDK_Manager.Instance.ShowRewardVideo(_placement, b =>
// {
// DOVirtual.DelayedCall(0.1f, () =>
// {
@@ -162,9 +162,10 @@ namespace ChillConnect
// }
// else
// {
// Debug.Log($"广告未准备好,不播放");
// onVideoAdCompleted?.Invoke(false);
// }
// #endif
#endif
}
#endregion