removed print statements
This commit is contained in:
@@ -13,12 +13,10 @@ public partial class DetectableInteractionArea : Area2D
|
||||
{
|
||||
if (instanceID.AsString() == GetInstanceId().ToString())
|
||||
{
|
||||
GD.Print("InteractionArea: Selected.");
|
||||
interactionArea2D.HighlightInteractable();
|
||||
}
|
||||
else
|
||||
{
|
||||
GD.Print("InteractionArea: Not Selected.");
|
||||
interactionArea2D.ResetHighlight();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,6 @@ public partial class Detector : Area2D
|
||||
|
||||
private void CalculateClosestInteractable()
|
||||
{
|
||||
GD.Print($"Areas in detector: {_areasInDetector.Count}");
|
||||
float smallestDistance = float.MaxValue;
|
||||
string closestInteractable = null;
|
||||
foreach (var area in _areasInDetector)
|
||||
@@ -92,7 +91,6 @@ public partial class Detector : Area2D
|
||||
smallestDistance = distance;
|
||||
}
|
||||
}
|
||||
GD.Print($"Closest interactable: {closestInteractable}");
|
||||
_itemToTriggerResource.Payload = closestInteractable;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ public partial class InteractionArea2D : Node2D
|
||||
|
||||
public void HighlightInteractable()
|
||||
{
|
||||
GD.Print($"InteractionArea: Trying to highlight interactable. Current state: Active {_active}, Input Enabled {InputService.Instance.InputEnabled}, show label: {_showLabel} and use outline {_useOutline}.");
|
||||
IsSelectedByDetector = true;
|
||||
|
||||
if (!_active || !InputService.Instance.InputEnabled)
|
||||
@@ -73,7 +72,6 @@ public partial class InteractionArea2D : Node2D
|
||||
|
||||
public void ResetHighlight()
|
||||
{
|
||||
GD.Print($"InteractionArea: Resetting interactable. Current state: show label: {_showLabel} and use outline {_useOutline}.");
|
||||
IsSelectedByDetector = false;
|
||||
_label.Hide();
|
||||
|
||||
@@ -108,10 +106,8 @@ public partial class InteractionArea2D : Node2D
|
||||
|
||||
private void TryInteract()
|
||||
{
|
||||
GD.Print("InteractionArea: Trying to interact.");
|
||||
if (_area.HasOverlappingAreas())
|
||||
{
|
||||
GD.Print("InteractionArea: Interacting.");
|
||||
ResetHighlight();
|
||||
Interact();
|
||||
}
|
||||
@@ -131,7 +127,6 @@ public partial class InteractionArea2D : Node2D
|
||||
|
||||
public void ToggleActive()
|
||||
{
|
||||
GD.Print("InteractionArea: Toggled active state");
|
||||
_active = !_active;
|
||||
_label.Hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user