Возможность отключать интерактивные объекты
This commit is contained in:
parent
26db1ea66d
commit
872d650b3d
4 changed files with 29 additions and 5 deletions
|
@ -17,6 +17,7 @@ public partial class Day : Node2D
|
|||
private Player _player;
|
||||
private ColorRect _colorRect;
|
||||
private AudioStreamPlayer _music;
|
||||
private Interactable _endDay;
|
||||
|
||||
private double _transitionTimeout = 0;
|
||||
|
||||
|
@ -26,6 +27,7 @@ public partial class Day : Node2D
|
|||
_player = (Player)FindChild("Player");
|
||||
_colorRect = _player.CRect;
|
||||
_music = (AudioStreamPlayer)FindChild("Music");
|
||||
_endDay = (Interactable)FindChild("EndDay");
|
||||
_colorRect.Color = new Color(0, 0, 0, 1f);
|
||||
_music.VolumeDb = -40;
|
||||
_player.CurrentState = Player.State.Wait;
|
||||
|
@ -36,6 +38,11 @@ public partial class Day : Node2D
|
|||
{
|
||||
_state = State.TransitionOut;
|
||||
}
|
||||
|
||||
public void EnableEndDay()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue