Реализация окончания дня по приходу в каюту.
This commit is contained in:
parent
de683399fa
commit
4222af1896
8 changed files with 111 additions and 81 deletions
|
@ -31,15 +31,16 @@ public partial class Day : Node2D
|
|||
_colorRect.Color = new Color(0, 0, 0, 1f);
|
||||
_music.VolumeDb = -40;
|
||||
_player.CurrentState = Player.State.Wait;
|
||||
_endDay.Disable();
|
||||
}
|
||||
|
||||
public void AssignEndDay()
|
||||
public void AssignEndDay(Player player)
|
||||
{
|
||||
_player.InteractableObjects.Add(_endDay);
|
||||
player.InteractableObjects.Add(_endDay);
|
||||
}
|
||||
public void RemoveEndDay()
|
||||
public void RemoveEndDay(Player player)
|
||||
{
|
||||
_player.InteractableObjects.Remove(_endDay);
|
||||
player.InteractableObjects.Remove(_endDay);
|
||||
}
|
||||
|
||||
public void ChangeDay()
|
||||
|
@ -49,7 +50,7 @@ public partial class Day : Node2D
|
|||
|
||||
public void EnableEndDay()
|
||||
{
|
||||
_endDay.IsEnabled = true;
|
||||
_endDay.Enable();
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue