Exemplo n.º 1
0
        public void InitData()
        {
            foreach (var cell in _enemyUnits)
            {
                var unit = _unitsController.GetUnits().First();
                cell.SetData(unit);
            }

            ActiveCell = _allyUnits[0];
            ActiveCell.SetActiveCell();
        }
Exemplo n.º 2
0
        public void SubscribeCellToList(BattleUnitTeamType team, BattleCellView cell)
        {
            switch (team)
            {
            case BattleUnitTeamType.Ally:
                _allyUnits.Add(cell);
                break;

            case BattleUnitTeamType.Enemy:
                _enemyUnits.Add(cell);
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(team), team, null);
            }
        }