Ejemplo n.º 1
0
    public override void OnCellSelected(Cell cell, List <Cell> gridCells)
    {
        _unit.abilityActionUsable = false;
        _unit.isActing            = true;
        _unit.animator.SetTrigger("Ability");

        CustomSquare square = cell as CustomSquare;

        _targetSquares = square.GetNeighbours(gridCells);
        _targetSquares.Add(cell);
    }