mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update UnitySingleton.cs
This commit is contained in:
@@ -85,12 +85,12 @@ namespace TEngine
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
TLogger.LogInfo($"UnitySingleton Instance:{typeof(T).Name}");
|
||||
#endif
|
||||
GameObject tEngine = SingletonMgr.Root;
|
||||
if (tEngine != null)
|
||||
{
|
||||
this.gameObject.transform.SetParent(tEngine.transform);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
protected virtual void OnDestroy()
|
||||
|
Reference in New Issue
Block a user