GameScripts

GameScripts
This commit is contained in:
ALEXTANG
2023-04-11 19:58:38 +08:00
parent 4e2b3756c9
commit 6e0785623d
25 changed files with 458 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using TEngine;
namespace GameBase
{
public class Singleton<T> where T:new()
{
private static T _instance;
public static T Instance
{
get
{
if (null == _instance)
{
_instance = new T();
Log.Assert(_instance != null);
}
return _instance;
}
}
}
}