// Update is called once per frame
    void Update()
    {
        if (!isInTutorial)
        {
            totalNPCText.text  = "Total NPC: " + GameStats.totalNPCs;
            healthSlider.value = GameStats.playerHealth;

            if (npcSpawner.AllNPCsSpawned())
            {
                player.SetActive(true);
                GameStats.playerHealth -= (4 * Time.deltaTime);
            }
        }
        GameStats.CheckGameCondition();
        if (GameStats.gameIsOver || player.transform.position.y <= -20)
        {
            StartCoroutine(DisplayText());
        }
    }