selector changes

This commit is contained in:
MaddoScientisto 2025-01-30 08:34:09 +01:00
commit f9432a61ee
11 changed files with 103 additions and 16 deletions

26
Scripts/Selector.cs Normal file
View file

@ -0,0 +1,26 @@
using Godot;
using System;
using System.Collections.Generic;
public partial class Selector : Node2D
{
private Interactable _lastInteractable;
private List<Interactable> _interactables = new List<Interactable>();
private int _selectedInteractable;
public void AddInteractable(Interactable interactable)
{
if (!_interactables.Contains(interactable)) {
_interactables.Add(interactable);
}
}
public void RemoveInteractable()
{
}
}