1
This commit is contained in:
@@ -17,7 +17,7 @@ namespace BITKit
|
||||
public abstract class MonoBehaviourSingleton<T> : MonoBehaviour
|
||||
{
|
||||
public static T Singleton { get; private set; }
|
||||
protected void Awake()
|
||||
protected virtual void Awake()
|
||||
{
|
||||
if (this is T t) Singleton = t;
|
||||
}
|
||||
|
Reference in New Issue
Block a user