OnDrawGizmos

OnDrawGizmos
This commit is contained in:
ALEXTANG
2022-09-14 20:40:08 +08:00
parent d7ca31596d
commit a35830a912
3 changed files with 27 additions and 1 deletions

View File

@@ -72,6 +72,10 @@ namespace TEngine.Runtime
public virtual void OnResume()
{
}
public virtual void OnDrawGizmos()
{
}
}
public class BehaviourSingleSystem : BaseLogicSys<BehaviourSingleSystem>
@@ -207,5 +211,14 @@ namespace TEngine.Runtime
inst.OnResume();
}
}
public override void OnDrawGizmos()
{
for (int i = 0; i < m_listInst.Count; i++)
{
var inst = m_listInst[i];
inst.OnDrawGizmos();
}
}
}
}

View File

@@ -15,6 +15,8 @@
void OnPause();
void OnResume();
void OnDrawGizmos();
}
}

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace TEngine.Runtime
@@ -152,6 +153,16 @@ namespace TEngine.Runtime
}
base.OnDestroy();
}
public void OnDrawGizmos()
{
for (int i = 0; i < m_LogicMgrList.Count; i++)
{
var logicSys = m_LogicMgrList[i];
logicSys.OnDrawGizmos();
}
}
#endregion
}
}