DESKTOP-DDTRVOR\asus 63e96281eb 修复广告相关
2024-12-23 16:16:32 +08:00

35 lines
577 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ADSystem
{
private static ADSystem instance = null;
private ADSystem() {
}
public static ADSystem getInstance() {
if (instance == null) {
instance = new ADSystem();
}
return instance;
}
public void InitSdk(Action action)
{
action?.Invoke();
}
public void PlayAd(Action action)
{
AdMgr.Instance.ShowAd((a) =>
{
action?.Invoke();
});
}
}