您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
13 行
399 B
13 行
399 B
using HuaweiHms;
|
|
using UnityEngine.Events;
|
|
|
|
namespace HuaweiHmsDemo{
|
|
public delegate void TestEvent(string text,UnityAction action);
|
|
public abstract class Test<T> where T:new(){
|
|
private static T _inst;
|
|
public static T GetInstance(){
|
|
return _inst == null?_inst = new T():_inst;
|
|
}
|
|
public abstract void RegisterEvent(TestEvent registerEvent);
|
|
}
|
|
}
|