fourth commit
This commit is contained in:
@@ -7,7 +7,7 @@ public partial class Main : Node
|
||||
{
|
||||
public bool _isCommanderTurn = true;
|
||||
public Commander _commander;
|
||||
public GridMap _grid;
|
||||
public GridMap2D _grid;
|
||||
public PackedScene _enemyScene = GD.Load<PackedScene>("res://Enemy.tscn");
|
||||
public List<Enemy> _enemies = new();
|
||||
public Random _rng = new();
|
||||
@@ -15,7 +15,7 @@ public partial class Main : Node
|
||||
{
|
||||
base._Ready();
|
||||
_commander = GetNode<Commander>("Commander");
|
||||
_grid = GetNode<GridMap>("GridMap");
|
||||
_grid = GetNode<GridMap2D>("GridMap2D");
|
||||
_commander.GlobalPosition = _grid.GlobalPosition;
|
||||
_commander.TurnDone += ChangeTurn;
|
||||
AddEnemy();
|
||||
|
||||
Reference in New Issue
Block a user