Exemple #1
0
    // 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());
    }
Exemple #2
0
    // 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());
    }