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 }
void OnTriggerEnter2D() { rigid.position = respawn.position; livesController.playerHealth = livesController.playerHealth - incorrect; livesController.UpdateHealth(); }