Files
project-reset/Assets/Plugins/LiveWatchLite/Scripts/Utilities/Singleton.cs
2025-08-31 18:14:07 -04:00

22 lines
420 B
C#

using System.IO;
using UnityEngine;
namespace Ingvar.LiveWatch
{
public abstract class Singleton<T> where T : new()
{
public static T instance
{
get
{
if (_instance != null)
return _instance;
_instance = new T();
return _instance;
}
}
private static T _instance;
}
}