// Sets the Cell by icon of military unit public void SetUnitCell(int unitIndex, Sprite unitIcon, int amount, InformationMenu informationMenu) { _informationMenu = informationMenu; _unitIndex = unitIndex; UnitIcon.sprite = unitIcon; Amount.text = amount.ToString() + "x "; }
private Vector2 _startPos; // Mouse pos, when selection begin // Inits SelectionManager public void InitSelectionManager(GameManager manager) { _manager = manager; _informationMenu = _manager.InformationMenu; _selectedBuildings = new List <BuildingSolid>(); _selectedUnits = new List <MilitaryUnit>(); SelectionBox.gameObject.SetActive(false); }
public void OnInformation() { Hide(); InformationMenu.Show(); }