Update BehaviourSingleton.cs

This commit is contained in:
ALEXTANG
2022-10-08 19:04:24 +08:00
parent 9195856bb9
commit a3d4b39443

View File

@@ -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);