public void Draw() { aabb.Draw(Color.white); left?.Draw(); right?.Draw(); }
public override void Draw() { rootNode?.Draw(); /*< check if the root node is not null below, use ? operator> * * < call Draw() on root node >*/ }
public void Draw() { aabb.Draw(Color.white); //< check if the left / right node is not null below, use ? operator> //< draw left node> left?.Draw(); //< draw right node> right?.Draw(); }
public override void Draw() { rootNode?.Draw(); }