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