mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 18:05:54 +00:00
Disable debugdraw in release
This commit is contained in:
parent
7c2d01a52e
commit
34a0e8e380
8 changed files with 70 additions and 68 deletions
|
|
@ -5,14 +5,15 @@ namespace Cirno.Scripts.Actors._3D;
|
|||
[Tool]
|
||||
public partial class PlayerStartMarker3D : Marker3D
|
||||
{
|
||||
|
||||
private readonly Vector3 _boxSize = new Vector3(0.5f, 0.8f, 0.5f);
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (!Engine.IsEditorHint()) return;
|
||||
|
||||
|
||||
#if !DISABLE_DD3D
|
||||
DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Green);
|
||||
|
||||
#endif
|
||||
//DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green);
|
||||
}
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ namespace Cirno.Scripts.Actors;
|
|||
public partial class EnemyMarker3D : PreviewMarker3D, IActivable
|
||||
{
|
||||
private readonly Vector3 _boxSize = new Vector3(0.5f, 0.8f, 0.5f);
|
||||
|
||||
|
||||
private EnemyResource _enemy;
|
||||
|
||||
[Export]
|
||||
|
|
@ -47,7 +47,6 @@ public partial class EnemyMarker3D : PreviewMarker3D, IActivable
|
|||
SetSpriteAlpha(0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,13 +101,13 @@ public partial class EnemyMarker3D : PreviewMarker3D, IActivable
|
|||
{
|
||||
Activate();
|
||||
}
|
||||
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (!Engine.IsEditorHint()) return;
|
||||
|
||||
#if !DISABLE_DD3D
|
||||
DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Red);
|
||||
|
||||
#endif
|
||||
//DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green);
|
||||
}
|
||||
}
|
||||
|
|
@ -124,8 +124,9 @@ public partial class ItemMarker3D : PreviewMarker3D
|
|||
{
|
||||
if (!Engine.IsEditorHint()) return;
|
||||
|
||||
#if !DISABLE_DD3D
|
||||
DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Blue);
|
||||
|
||||
#endif
|
||||
//DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue