public DiagramElement HitTest(DiagramContext context,Vector2 position) { //Debug.Log(" node log " + position); if(rect.Contains(position)){ return this; } NodeAdapter adapter = context.GetNodeAdapter(typeId); if(adapter.HitTest(this , context , position)){ return this; } return null; }
public virtual void DrawNode(DiagramContext context) { NodeAdapter adapter = context.GetNodeAdapter(typeId); adapter.DrawNode(this , context); }