public void Dispose() { drawNodeDrawSubscriber.Disconnect(drawNode, "draw"); drawNodeDrawSubscriber.Dispose(); drawNode.QueueFree(); drawNode.Dispose(); }
public override void OnRemove() { base.OnRemove(); debugDrawSubscriber.Disconnect(debugNode, "draw"); debugDrawSubscriber.Dispose(); debugDrawSubscriber = null; debugNode.QueueFree(); debugNode.Dispose(); debugNode = null; }