public void RespawnIfStuck() { if (Vector3.Distance(SpawnPosition, this.transform.position) < 0.5f) { parentSpawner.Respawn(this.gameObject); } }