Ejemplo n.º 1
0
 public override void Shutdown()
 {
     base.Shutdown();
     VS.FreeRid(ShadedCanvasItem);
     VS.FreeRid(UnshadedCanvasItem);
     UnshadedMaterial.Dispose();
     ShadedMaterial.Dispose();
     DrawingNode.QueueFree();
     DrawingNode.Dispose();
 }
        public override void OnRemove()
        {
            base.OnRemove();

            debugDrawSubscriber.Disconnect(debugNode, "draw");
            debugDrawSubscriber.Dispose();
            debugDrawSubscriber = null;

            debugNode.QueueFree();
            debugNode.Dispose();
            debugNode = null;
        }
Ejemplo n.º 3
0
 public override void Shutdown()
 {
     base.Shutdown();
     if (!GameController.OnGodot)
     {
         return;
     }
     VS.FreeRid(ShadedCanvasItem);
     VS.FreeRid(UnshadedCanvasItem);
     UnshadedMaterial.Dispose();
     ShadedMaterial.Dispose();
     DrawingNode.QueueFree();
     DrawingNode.Dispose();
 }