mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update BehaviourSingleton.cs
This commit is contained in:
@@ -15,8 +15,8 @@ namespace TEngine.Runtime
|
||||
{
|
||||
if (null == sInstance)
|
||||
{
|
||||
BehaviourSingleSystem.Instance.CheckInstance();
|
||||
sInstance = new T();
|
||||
BehaviourSingleSystem.Instance.CheckInstance();
|
||||
TLogger.LogAssert(sInstance != null);
|
||||
sInstance.Awake();
|
||||
RegSingleton(sInstance);
|
||||
|
Reference in New Issue
Block a user