Ejemplo n.º 1
0
    public void SetCities(int s7, int s4, int s3)
    {
        size7 = s7;
        size4 = s4;
        size3 = s3;
        choiceWndow.SetActive(false);

        if (size7 > 0)
        {
            button7.SetActive(true);
            targettingScript.EnableCityPlacementPrefab(0);
        }
        if (size4 > 0)
        {
            targettingScript.EnableCityPlacementPrefab(1);
            button4.SetActive(true);
        }
        if (size3 > 0)
        {
            targettingScript.EnableCityPlacementPrefab(2);
            button3.SetActive(true);
        }

        msgD.DisplayMessage("Place Your Cities", 0.5f);
    }
Ejemplo n.º 2
0
 public void SelectSize()
 {
     targettingScript.ClearCity();
     targettingScript.EnableCityPlacementPrefab(citySize);
     targettingScript.intendedSize = actualSize;
 }