Exemplo n.º 1
0
 public override void Shutdown()
 {
     base.Shutdown();
     VS.FreeRid(ShadedCanvasItem);
     VS.FreeRid(UnshadedCanvasItem);
     UnshadedMaterial.Dispose();
     ShadedMaterial.Dispose();
     DrawingNode.QueueFree();
     DrawingNode.Dispose();
 }
Exemplo n.º 2
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();
 }