void OnTriggerEnter2D(Collider2D CollidedWith) { if (CollidedWith.CompareTag("Player") && ItemScript.AllKeycardsCollected()) { FadeToNextLevel(); } }
void OnTriggerEnter2D(Collider2D CollidedWith) { if (CollidedWith.CompareTag("Player") && ItemScript.AllKeycardsCollected()) { FadeToNextLevel(); } }