/// <summary> /// Selects the specified unit. /// </summary> /// <param name="unit">The unit to be marked as selcted.</param> public void SelectUnit(BattleUnit unit) { if (_currentUnit == unit) { return; } if (_currentUnit != null) { _currentUnit.DeselectUnit(); } _currentUnit = unit; _currentUnit.SelectUnit(); UnhighlightNodes(); _currentUnit.FindNodesWithinDistance(this._hexes); _currentUnit.HighlightNodes(); }