コード例 #1
0
    public void SelectTile(BuildTowers tile)
    {
        if (selectedTile == tile)
        {
            DeselectTile();
            return;
        }
        selectedTile  = tile;
        turretToBuild = null;

        selectUI.SetTarget(tile);
    }
コード例 #2
0
    public void SelectPlatform(Platform platform)
    {
        if (selectedPlatform == platform)
        {
            DeselectNode();
            return;
        }

        selectedPlatform = platform;
        towerToBuild     = null;

        SetBorder(-1);
        platformUI.SetTarget(platform);
    }