namespace XGame.Framework.Data
{
///
/// IData 的单例基类
///
///
public abstract class DataSingleton : IData where TType : DataSingleton, new()
{
public static TType Instance => DataModule.Instance.GetOrAdd();
public static void Dispose()
{
DataModule.Instance.Remove();
}
}
}