mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update GameApp_RegisterSystem.cs
This commit is contained in:
@@ -3,11 +3,11 @@ using TEngine;
|
|||||||
|
|
||||||
public partial class GameApp
|
public partial class GameApp
|
||||||
{
|
{
|
||||||
private List<ILogicSys> m_listLogicMgr;
|
private List<ILogicSys> _listLogicMgr;
|
||||||
|
|
||||||
private void Init()
|
private void Init()
|
||||||
{
|
{
|
||||||
m_listLogicMgr = new List<ILogicSys>();
|
_listLogicMgr = new List<ILogicSys>();
|
||||||
RegisterAllSystem();
|
RegisterAllSystem();
|
||||||
InitSystemSetting();
|
InitSystemSetting();
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@ public partial class GameApp
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
protected bool AddLogicSys(ILogicSys logicSys)
|
protected bool AddLogicSys(ILogicSys logicSys)
|
||||||
{
|
{
|
||||||
if (m_listLogicMgr.Contains(logicSys))
|
if (_listLogicMgr.Contains(logicSys))
|
||||||
{
|
{
|
||||||
Log.Fatal("Repeat add logic system: {0}", logicSys.GetType().Name);
|
Log.Fatal("Repeat add logic system: {0}", logicSys.GetType().Name);
|
||||||
return false;
|
return false;
|
||||||
@@ -47,7 +47,7 @@ public partial class GameApp
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_listLogicMgr.Add(logicSys);
|
_listLogicMgr.Add(logicSys);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user