Пример #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));
    }
Пример #2
0
 public void RemoveSouls(int s)
 {
     TotalSouls         -= (ulong)s;
     TotalSoulsText.text = "Souls: " + TotalSouls.ToString();
 }
Пример #3
0
 public void AddSouls(int s)
 {
     TotalSouls         += (ulong)s;
     TotalSoulsText.text = "Souls: " + TotalSouls.ToString();
 }