mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 21:05:54 +00:00
selector changes
This commit is contained in:
parent
686dea6c8d
commit
f9432a61ee
11 changed files with 103 additions and 16 deletions
26
Scripts/Selector.cs
Normal file
26
Scripts/Selector.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue