Passion & UI
This commit is contained in:
@@ -6,7 +6,7 @@ namespace SLSUtilities.General
|
||||
public class Singleton<T> : SerializedMonoBehaviour where T : MonoBehaviour
|
||||
{
|
||||
protected static T instance;
|
||||
public static T Instance => instance == null ? FindFirstObjectByType<T>() : instance;
|
||||
public static T Instance => instance;
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user