private void OnCollisionEnter(Collision collision) { if (isActivated) { if (collision.gameObject.layer == playerLayer) { isActivated = false; _objectives.EndPhase(); screen.SetActive(false); } } }