public void TakeDamage(int damage)
    {
        health -= damage;

        if (health <= 0)
        {
            Die();
            ScoringSystem.Correct();
        }
    }
Пример #2
0
    public void correct()
    {
        panel1.SetActive(true);
        if (panel1.activeSelf == true)
        {
            panel2.SetActive(false);
        }

        ScoringSystem.Correct();
        QnA.RemoveAt(currentQuestion);
        generateQuestion();
    }