private void OnTriggerExit(Collider other) { if (other.gameObject.tag == "Player") { if (_checkPointData.isPassed) { checkPointManager.SetLastPassedCheckPoint(_checkPointData.checkPointID); } } }