mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Pause mode for dialogue
This commit is contained in:
parent
ac923941c3
commit
6a2802281c
3 changed files with 34 additions and 16 deletions
|
|
@ -307,6 +307,23 @@ public partial class GameManager : Node2D
|
|||
GameState = state;
|
||||
EmitSignal(nameof(GameStateChange), (int)GameState);
|
||||
GD.Print($"Game state changed to {state}");
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case GameState.Menu:
|
||||
GetTree().SetPause(false);
|
||||
break;
|
||||
case GameState.Paused:
|
||||
case GameState.Dialogue:
|
||||
GetTree().SetPause(true);
|
||||
break;
|
||||
case GameState.Playing:
|
||||
GetTree().SetPause(false);
|
||||
break;
|
||||
case GameState.Controlling:
|
||||
GetTree().SetPause(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue