Реализация интерактивного объекта
This commit is contained in:
parent
872d650b3d
commit
de683399fa
4 changed files with 94 additions and 70 deletions
|
@ -32,7 +32,15 @@ public partial class Day : Node2D
|
|||
_music.VolumeDb = -40;
|
||||
_player.CurrentState = Player.State.Wait;
|
||||
}
|
||||
|
||||
|
||||
public void AssignEndDay()
|
||||
{
|
||||
_player.InteractableObjects.Add(_endDay);
|
||||
}
|
||||
public void RemoveEndDay()
|
||||
{
|
||||
_player.InteractableObjects.Remove(_endDay);
|
||||
}
|
||||
|
||||
public void ChangeDay()
|
||||
{
|
||||
|
@ -41,7 +49,7 @@ public partial class Day : Node2D
|
|||
|
||||
public void EnableEndDay()
|
||||
{
|
||||
|
||||
_endDay.IsEnabled = true;
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue