public override void Update() { if (!_finishedSelection) { HexNode playerNode = _player.GetCurrentNode(); HexNode enemyNode = Enemy.GetCurrentNode(); Manager.Pathfinder.Search(enemyNode, playerNode); List <HexNode> path = Manager.Pathfinder.Path; if (path != null) { SelectInteraction(path, playerNode); } else { Debug.Log("no valid path was found! for " + Enemy.name); _finishedSelection = true; } } else { Manager.ChangePhase(typeof(TurnPhaseEnemyAction)); } }