Esempio n. 1
0
    void Start()
    {
        BlackScreen.SetActive(false);
        Fail0.SetActive(false);
        Fail1.SetActive(false);
        m_initialPopulation = Population;

        CurrentYearText.text = "Year: " + CurrentYear.ToString();
        PopulationText.text  = "Population: " + Population.ToString();
        TotalSoulsText.text  = "Souls: " + TotalSouls.ToString();

        GrowthRateText.text = GrowthRate.ToString();
        InvokeRepeating("TimeTick", 0.0f, 1.0f);
        InvokeRepeating("PopulationGrowth", 0.0f, 1.0f);


        //Debug.Log(CalculatePopGrowth(m_initialPopulation, 5));
    }
Esempio n. 2
0
    void GameOver()
    {
        if (Population == 1)
        {
            Fail1.SetActive(true);
            BlackScreen.SetActive(true);
        }
        else
        {
            Fail0.SetActive(true);
            BlackScreen.SetActive(true);
        }

        foreach (GameObject i in Deactivateable)
        {
            i.SetActive(false);
        }
    }