Прогрессия 2
This commit is contained in:
parent
b793b79d39
commit
f37e2b5c4f
10 changed files with 67 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue