private void DrawChilds(Transform transform, IDrawDevice device) { foreach (var child in transform.GetChilds()) { device.DrawLine(Color32.blue, child.position, child.position + child.right); DrawChilds(child, device); } }
public override void Draw(IDrawDevice device) { Vector2 pos = transform.position; device.DrawLine(color, pos, pos + transform.right); }