void OnTriggerEnter(Collider col) { if (col.gameObject.layer == 8) { StartCoroutine(checkPointManager.ResetPosition(col.gameObject)); } }