Прогрессия 2

This commit is contained in:
Евгений Титаренко 2024-08-25 18:08:54 +03:00
parent b793b79d39
commit f37e2b5c4f
10 changed files with 67 additions and 18 deletions

View file

@ -5,11 +5,21 @@ public partial class Door : Node2D
{
[Export] public Door Exit;
private Interactable _interactable;
public void Enable()
{
_interactable.Enable();
}
public void Disable()
{
_interactable.Disable();
}
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
_interactable = (Interactable)FindChild("Interactable");
}
// Called every frame. 'delta' is the elapsed time since the previous frame.