Ejemplo n.º 1
0
 public static void UpdateDrawLine2D()
 {
     if (Line2D.Count > 0)
     {
         if (!Node.IsInstanceValid(instance))
         {
             Scene.Current.AddChild(instance = new DrawDebugLine2D());
             instance.Owner = Scene.Current;
         }
         instance.ZIndex = 4096;
         instance.Update();
         Line2D.Clear();
     }
     else if (Node.IsInstanceValid(instance))
     {
         instance.QueueFree();
     }
 }
Ejemplo n.º 2
0
 public void OnDispatch(Debug args)
 {
     DrawDebugLabels.UpdateLabel();
     DrawDebugLine2D.UpdateDrawLine2D();
     DrawDebugLine3D.UpdateDrawLine3D();
 }