mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update TEngine.cs
This commit is contained in:
@@ -76,6 +76,25 @@ namespace TEngine
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 系统注销
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="logicSys"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public void RemoveLogicSys(ILogicSys logicSys)
|
||||||
|
{
|
||||||
|
if (m_LogicMgrList.Contains(logicSys))
|
||||||
|
{
|
||||||
|
TLogger.LogInfo("Remove logic system: " + logicSys.GetType().Name);
|
||||||
|
|
||||||
|
logicSys.OnDestroy();
|
||||||
|
|
||||||
|
m_LogicMgrList.Remove(logicSys);
|
||||||
|
|
||||||
|
logicSys = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region 生命周期
|
#region 生命周期
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user