更新
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SLSFramework.General
|
||||
{
|
||||
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
|
||||
public class Singleton<T> : SerializedMonoBehaviour where T : MonoBehaviour
|
||||
{
|
||||
protected static T instance;
|
||||
public static T Instance => instance;
|
||||
|
||||
Reference in New Issue
Block a user