mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
OnDrawGizmos
OnDrawGizmos
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -15,6 +15,8 @@
|
||||
void OnPause();
|
||||
|
||||
void OnResume();
|
||||
|
||||
void OnDrawGizmos();
|
||||
}
|
||||
|
||||
}
|
@@ -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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user