🐛 Fixed field interaction bug
This commit is contained in:
@@ -8,16 +8,17 @@ namespace Babushka.scripts.CSharp.Common.CharacterControls;
|
||||
public partial class DetectableInteractionArea : Area2D
|
||||
{
|
||||
[Export] public InteractionArea2D interactionArea2D;
|
||||
|
||||
|
||||
public void InteractionAreaSelectionChanged(Variant instanceID)
|
||||
{
|
||||
if (instanceID.AsString() == GetInstanceId().ToString())
|
||||
{
|
||||
GD.Print("InteractionArea: Selected.");
|
||||
interactionArea2D.HighlightInteractable();
|
||||
}
|
||||
else
|
||||
{
|
||||
GD.Print("InteractionArea: Not Selected.");
|
||||
interactionArea2D.ResetHighlight();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user