// Start is called before the first frame update private void Start() { // Starting values sliders = GetComponent <SliderChangeScript>(); burnoutChangeValue = 2f; moodChangeValue = 2f; // Game events GameEvents.instance.onSundayEvent += itIsSunday; // Start the game loop StartCoroutine(NextDayCountdown()); }
// Start is called before the first frame update private void Start() { // Starting values sliders = GetComponent <SliderChangeScript>(); burnoutChangeValue = 2f; moodChangeValue = 2f; counterAdd = divideNum; clockTime = clockStart; budgetScript = GetComponent <BudgetScript>(); // Pool NPCs spawner = GetComponent <NPCSpawner>(); // Game events GameEvents.instance.onSundayEvent += itIsSunday; // Start the game loop StartCoroutine(PlayGameLoop()); }