mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 20:15:53 +00:00
3D Switches
This commit is contained in:
parent
003dde1b7f
commit
cb60226ced
20 changed files with 267 additions and 14 deletions
|
|
@ -1,6 +1,16 @@
|
|||
namespace Cirno.Scripts.UI;
|
||||
using Cirno.Scripts.Interactables;
|
||||
using Godot;
|
||||
|
||||
public partial class Selector3D
|
||||
namespace Cirno.Scripts.UI;
|
||||
|
||||
public partial class Selector3D : Control
|
||||
{
|
||||
|
||||
public IInteractable Target { get; set; }
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (Target is null) return;
|
||||
|
||||
this.GlobalPosition = Target.GetScreenPosition();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue