예제 #1
0
    private void selectPlace(Place p)
    {
        selectNothing();    //Clean

        if (p.building)     //If there is a Building on the Place, select this instead ! (TODO)
        {
            selectBuilding(p.building);
        }
        else
        {
            p.SetGlowMaterial();
            selectionState = SelectionState.PlaceSelected;

            selectedPlace = p;
            if (p.TestForBuilding())
            {
                guiControll.ActivateBuildPanel(p);
            }
        }
    }