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)); }
public void RemoveSouls(int s) { TotalSouls -= (ulong)s; TotalSoulsText.text = "Souls: " + TotalSouls.ToString(); }
public void AddSouls(int s) { TotalSouls += (ulong)s; TotalSoulsText.text = "Souls: " + TotalSouls.ToString(); }