예제 #1
0
    /// <summary>
    /// 타워 파괴 버튼.
    /// </summary>
    public void DestoryButton()
    {
        CellClass selectedCell = GameManager.Instance.GetMapManager().GetSelectedCell();

        if (selectedCell == null)
        {
            return;
        }

        if (!selectedCell.DestoryTower())
        {
            return;
        }

        GameManager.Instance.GetMapManager().SetSelectedCell(null);
    }