public override void Shutdown() { base.Shutdown(); VS.FreeRid(ShadedCanvasItem); VS.FreeRid(UnshadedCanvasItem); UnshadedMaterial.Dispose(); ShadedMaterial.Dispose(); DrawingNode.QueueFree(); DrawingNode.Dispose(); }
public override void Shutdown() { base.Shutdown(); if (!GameController.OnGodot) { return; } VS.FreeRid(ShadedCanvasItem); VS.FreeRid(UnshadedCanvasItem); UnshadedMaterial.Dispose(); ShadedMaterial.Dispose(); DrawingNode.QueueFree(); DrawingNode.Dispose(); }