mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 05:47:13 +08:00
(client) chore:Mark Singleton class as an abstract class
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace Utils
|
||||
{
|
||||
public class Singleton<T> where T : new()
|
||||
public abstract class Singleton<T> where T : new()
|
||||
{
|
||||
private static T _instance;
|
||||
public static T Instance => _instance ??= new T();
|
||||
|
||||
Reference in New Issue
Block a user