Exemple #1
0
 public void ButtonClick()
 {
     livesController.playerHealth = livesController.playerHealth - incorrect;
     livesController.UpdateHealth();
     wrongButton.interactable = false;
     this.gameObject.SetActive(false);  // Turns the button off so you can't select it again
 }
Exemple #2
0
 void OnTriggerEnter2D()
 {
     rigid.position = respawn.position;
     livesController.playerHealth = livesController.playerHealth - incorrect;
     livesController.UpdateHealth();
 }