public AttackSelectedState(UnitController uc, BoardGrid myGrid, UIController ui)
 {
     _activeUnit = uc;
     _activeUnit.SetReticle(true);
     ui.DisplayUnit(uc);
     ui.SelectUnit(uc);
     myGrid.HideHighlight();
     myGrid.ShowAttackRange(uc, uc.GetAttackRange(), _activeUnit.GetPlayerId());
     Debug.Log("Stan: Wybrany atak jednostki gracza: " + _activeUnit.GetPlayerId());
 }
Example #2
0
 public UnitSelectedState(UnitController uc, BoardGrid myGrid, UIController ui)
 {
     _activeUnit = uc;
     _activeUnit.SetReticle(true);
     myGrid.ShowMoveRange(_activeUnit.GetGridPosition(), _activeUnit.GetMoveRange());
     if (_activeUnit._freeAttacksCount > 0)
     {
         myGrid.ShowAttackRange(uc, uc.GetAttackRange(), _activeUnit.GetPlayerId());
     }
     ui.DisplayUnit(uc);
     ui.SelectUnit(uc);
     Debug.Log("Stan: Wybrana jednostka gracza: " + _activeUnit.GetPlayerId());
 }