Files
Webview_SgConfig_Unity_IOS/Assets/BingoSun/Scripts/SDK/MaxADKit.cs
T

45 lines
947 B
C#
Raw Normal View History

2026-05-15 16:15:09 +08:00
using System;
using UnityEngine;
using UnityEngine.Events;
using BingoBrain.Core;
using System.Collections.Generic;
using AppsFlyerSDK;
2026-07-06 16:31:08 +08:00
using DG.Tweening;
2026-05-15 16:15:09 +08:00
namespace BingoBrain.Core
{
public class MaxADKit
{
public static void Init()
{
2026-07-08 17:47:04 +08:00
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
2026-05-15 16:15:09 +08:00
}
2026-07-06 16:31:08 +08:00
public static void ShowInterstitial(string placement = "DefaultInterstitial", UnityAction<bool> onCompleted = null)
2026-05-15 16:15:09 +08:00
{
}
public static UnityAction<bool> onVideoAdCompleted = null;
2026-07-06 16:31:08 +08:00
private static string _placement = "";
private static Coroutine _waitForVideoAd = null;
2026-05-15 16:15:09 +08:00
public static void ShowVideo(string placement = "DefaultVideo", UnityAction<bool> onCompleted = null)
{
2026-07-06 16:31:08 +08:00
onVideoAdCompleted = onCompleted;
_placement = placement;
2026-05-15 16:15:09 +08:00
#if UNITY_EDITOR
2026-07-06 16:31:08 +08:00
onVideoAdCompleted?.Invoke(true);
2026-05-15 16:15:09 +08:00
#else
2026-07-06 16:31:08 +08:00
#endif
2026-05-15 16:15:09 +08:00
}
}
2026-07-06 16:31:08 +08:00
2026-05-15 16:15:09 +08:00
}