Fix game over bug

This commit is contained in:
2023-09-11 00:57:50 -07:00
parent 5788c41731
commit 28a29a88fe
4 changed files with 187 additions and 194 deletions

View File

@@ -50,7 +50,7 @@ public partial class CharacterSelectUpdateService : Control
public void ClearPlayerBGs(int playerIndex)
{
GD.Print($"Hiding player");
var allPortraits = GetNode<Control>($"P{playerIndex}").GetChildren().OfType<TextureRect>();
var allPortraits = GetNode<Control>($"P{playerIndex + 1}").GetChildren().OfType<TextureRect>();
foreach (var bg in allPortraits)
bg.Hide();
}