// Use this for initialization void OnTriggerEnter() { //if checkpoint is not enable we exit the method if (!checkpointEnabled) { return; } m_checkPointManager.CheckPoint(checkPointID); // we check the point on the manager // we disable this point so it won't trigger if we drive back through it checkpointEnabled = false; }