public void OnDelete() { if (m_parent != null) { m_parent.RemoveChild(this); BTEditorGraphNode.DestroyImmediate(this); } }