public void CheckDistance() { distanceFromMinotaur = Vector3.Distance(player.transform.position, minotaur.transform.position); if (distanceFromMinotaur <= deathRange) { print("dead"); death.DieAnim(); } }