Example #1
0
    public void TakeDamage(int damage)
    {
        health -= damage;

        if (health <= 0)
        {
            Die();
            ScoringSystem.Incorrect();
        }
    }
 public void inCorrect()
 {
     panel2.SetActive(true);
     if (panel2.activeSelf == true)
     {
         panel1.SetActive(false);
     }
     ScoringSystem.Incorrect();
     QnA.RemoveAt(currentQuestion);
     generateQuestion();
 }