Enemy follow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user