mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
3D Switches
This commit is contained in:
parent
003dde1b7f
commit
cb60226ced
20 changed files with 267 additions and 14 deletions
|
|
@ -118,7 +118,7 @@ public partial class SelectorController : Node
|
|||
{
|
||||
if (SelectedInteractable != null)
|
||||
{
|
||||
EmitSignalChangePosition(SelectedInteractable.GetGlobalPosition());
|
||||
EmitSignalChangePosition(SelectedInteractable.GetScreenPosition());
|
||||
EmitSignalShowSelector();
|
||||
}
|
||||
else
|
||||
|
|
@ -136,4 +136,10 @@ public partial class SelectorController : Node
|
|||
{
|
||||
EmitSignalHideSelector();
|
||||
}
|
||||
|
||||
public void PhysicsProcess(double delta)
|
||||
{
|
||||
if (SelectedInteractable is null) return;
|
||||
EmitSignalChangePosition(SelectedInteractable.GetScreenPosition());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue