Enemy follow

This commit is contained in:
2023-09-03 18:23:51 -07:00
parent c8d0eefd7e
commit aa9b5a1793
28 changed files with 27891 additions and 6 deletions

View File

@@ -40,6 +40,7 @@ public partial class GameManager : Node
public void OnP1CharacterSelected()
{
GD.Print("Instancing...");
var selectedPlayer = _p1Characters[_p1CharacterIndex].Instantiate();
_p1SelectedCharacter = selectedPlayer as Character;
GetTree().Root.AddChild(_p1SelectedCharacter);