35 lines
577 B
C#
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();
|
|
});
|
|
}
|
|
}
|