private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player" && followPlayer == true) { UIManager.ShowDeadScreen(); } }