void Awake()
 {
     invRef         = FindObjectOfType <Inventory>();
     dayRef         = FindObjectOfType <DayNightCycle>();
     player         = FindObjectOfType <PlayerController>();
     uiText[4].text = "DAYS: " + dayRef.GetDaysPassed().ToString();
     uiText[5].text = "0" + dayRef.GetHour() + "0" + dayRef.GetMinute().ToString();
 }
Exemplo n.º 2
0
 void SetNightSpawnCurrency()
 {
     spawnCurrency = Mathf.RoundToInt(15 * dayRef.GetDaysPassed() * 0.75f);
 }
 void CheckDaysPassed()
 {
     uiText[4].text = "DAYS: " + dayRef.GetDaysPassed().ToString();
 }