Exemple #1
0
    //public void build

    public void setupMenu(string menu)
    {
        if (menu == "building" && activeSelect != "building")
        {
            activeSelect = menu;
            setupBuildingMenu(ModelController.modelController.decade);
        }
        else if (menu == "building" && activeSelect == "building")
        {
            // kill buildingmenu
            activeSelect = "";
            foreach (Transform child in selectBackground.transform)
            {
                OptionButton.Destroy(child.gameObject);
            }
        }
        else if (menu == "financial" && activeSelect != "financial")
        {
        }
        else if (menu == "financial" && activeSelect == "financial")
        {
        }
    }