private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { if (active && cpIndex > cpTracker.getCurrentCPIndex()) { cpTracker.setCheckpoint(this.gameObject); active = false; } } }