private void DrawRunningTimeEntity(Entity entity) { EntityComNodeView comNodeView = Target as EntityComNodeView; Entity_ComNode comNode = comNodeView.Model as Entity_ComNode; foreach (var item in entity.GetComs()) { if (item.GetType() == comNode.RuntimeNode) { DrawCom(item); return; } } }
public override void OnInspectorGUI() { EntityComNodeView comNodeView = Target as EntityComNodeView; Entity_ComNode comNode = comNodeView.Model as Entity_ComNode; EntityGraph graph = comNode.Owner as EntityGraph; if (graph.RunningTimeEntity == null) { base.OnInspectorGUI(); } else { DrawRunningTimeEntity(graph.RunningTimeEntity); } }