public void SelectNode(Spot node)
    {
        if (selectedNode == node)
        {
            DeselectNode();
            return;
        }

        selectedNode  = node;
        turretToBuild = null;

        nodeUI.SetTarget(node);
    }
Beispiel #2
0
    public void SelectSpot(Spot spot)
    {
        if (selectedSpot == spot)
        {
            DeselectSpot();
            return;
        }

        selectedSpot = spot;
        extendable   = selectedSpot.spot;

        DeselectRoot();

        DeselectYggdrasil();

        spotUI.SetTarget(spot);
    }