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