public virtual void Clear() { if (LeftChild) { LeftChild.Clear(); LeftChild = null; } if (RightChild) { RightChild.Clear(); RightChild = null; } Destroy(gameObject); }
public virtual void Clear() { if (LeftChild) { LeftChild.Clear(); LeftChild = null; } if (RightChild) { RightChild.Clear(); RightChild = null; } Destroy(gameObject); }