mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 18:15:55 +00:00
Selector position fix
This commit is contained in:
parent
0f431b5343
commit
a18dc11eb3
9 changed files with 10 additions and 8 deletions
|
|
@ -7,6 +7,6 @@ public interface IInteractable
|
|||
public bool Activate(ActivationType activationType = ActivationType.Toggle);
|
||||
public bool CanActivate();
|
||||
|
||||
public Vector2 GetPosition();
|
||||
public Vector2 GetGlobalPosition();
|
||||
//protected bool MeetsRequirements();
|
||||
}
|
||||
|
|
@ -118,7 +118,7 @@ public partial class Selector : Node2D
|
|||
{
|
||||
if (SelectedInteractable != null)
|
||||
{
|
||||
this.Position = SelectedInteractable.GetPosition();
|
||||
this.GlobalPosition = SelectedInteractable.GetGlobalPosition();
|
||||
this.Visible = true;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue