32 lines
514 B
C#
32 lines
514 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)
|
|
{
|
|
action?.Invoke();
|
|
}
|
|
}
|