public void makeDead() { Instantiate(deathFX, transform.position, transform.rotation); montuRenderer.gameObject.SetActive(false); damageScreen.color = damagedColor; Animator gameOverAnimator = gameOverScreen.GetComponent <Animator>(); gameOverAnimator.SetTrigger("GameOver"); theGameManager.restartGame(); }