35 lines
577 B
C#
Raw Normal View History

2024-12-22 20:35:00 +08:00
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)
{
2024-12-23 16:16:32 +08:00
AdMgr.Instance.ShowAd((a) =>
{
action?.Invoke();
});
2024-12-22 20:35:00 +08:00
}
}