Scene transitions

This commit is contained in:
2023-09-11 11:17:52 -07:00
parent 28a29a88fe
commit ba9c1e320e
10 changed files with 1596 additions and 884 deletions

View File

@@ -78,7 +78,8 @@ public partial class GameManager : Node
public void RemoveCharacter(Player player)
{
player.CharactersLeftOnStage.Remove(player.SelectedCharacter);
GetTree().Root.RemoveChild(player.SelectedCharacter);
if (player.SelectedCharacter is not null)
GetTree().Root.RemoveChild(player.SelectedCharacter);
GD.Print(player.CharactersLeftOnStage.Select(x => x.Name).ToArray());