45 lines
947 B
C#
45 lines
947 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using BingoBrain.Core;
|
|
using System.Collections.Generic;
|
|
using AppsFlyerSDK;
|
|
using DG.Tweening;
|
|
|
|
namespace BingoBrain.Core
|
|
{
|
|
public class MaxADKit
|
|
{
|
|
public static void Init()
|
|
{
|
|
|
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void ShowInterstitial(string placement = "DefaultInterstitial", UnityAction<bool> onCompleted = null)
|
|
{
|
|
|
|
|
|
}
|
|
public static UnityAction<bool> onVideoAdCompleted = null;
|
|
private static string _placement = "";
|
|
private static Coroutine _waitForVideoAd = null;
|
|
|
|
public static void ShowVideo(string placement = "DefaultVideo", UnityAction<bool> onCompleted = null)
|
|
{
|
|
onVideoAdCompleted = onCompleted;
|
|
_placement = placement;
|
|
#if UNITY_EDITOR
|
|
onVideoAdCompleted?.Invoke(true);
|
|
#else
|
|
|
|
#endif
|
|
|
|
}
|
|
}
|
|
|
|
} |