mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
OnDrawGizmos
OnDrawGizmos
This commit is contained in:
@@ -72,6 +72,10 @@ namespace TEngine.Runtime
|
|||||||
public virtual void OnResume()
|
public virtual void OnResume()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void OnDrawGizmos()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BehaviourSingleSystem : BaseLogicSys<BehaviourSingleSystem>
|
public class BehaviourSingleSystem : BaseLogicSys<BehaviourSingleSystem>
|
||||||
@@ -207,5 +211,14 @@ namespace TEngine.Runtime
|
|||||||
inst.OnResume();
|
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 OnPause();
|
||||||
|
|
||||||
void OnResume();
|
void OnResume();
|
||||||
|
|
||||||
|
void OnDrawGizmos();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace TEngine.Runtime
|
namespace TEngine.Runtime
|
||||||
@@ -152,6 +153,16 @@ namespace TEngine.Runtime
|
|||||||
}
|
}
|
||||||
base.OnDestroy();
|
base.OnDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnDrawGizmos()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < m_LogicMgrList.Count; i++)
|
||||||
|
{
|
||||||
|
var logicSys = m_LogicMgrList[i];
|
||||||
|
logicSys.OnDrawGizmos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user