Basic game over imp

This commit is contained in:
2023-09-04 18:14:41 -07:00
parent 59a77d084c
commit 75bbe25929
3 changed files with 15 additions and 10 deletions

View File

@@ -16,12 +16,12 @@ public partial class StageGUI : Control
public void OnCharacterSelect(Player player)
{
if (_gameManager.IsGameOver)
if (player.GameOver)
return;
if (player == _gameManager.Players.ElementAt(0))
{
var wheel1 = GetNode<TextureRect>("CharacterSelect/Wheel");
var wheel1 = GetNode<TextureRect>("CharacterSelect/Wheel");
wheel1.FocusMode = FocusModeEnum.All;
wheel1.GrabFocus();
wheel1.Visible = true;