private void CheckForDeath() { if (health <= 0) { //die //Destroy(transform.parent.gameObject); uiScript.WinGame(); } }