Пример #1
0
    public void TakeDamage(int damage)
    {
        health -= damage;

        if (health <= 0)
        {
            Die();
            ScoringSystem.Incorrect();
        }
    }
Пример #2
0
 public void inCorrect()
 {
     panel2.SetActive(true);
     if (panel2.activeSelf == true)
     {
         panel1.SetActive(false);
     }
     ScoringSystem.Incorrect();
     QnA.RemoveAt(currentQuestion);
     generateQuestion();
 }