using System.Collections; using System.Collections.Generic; using UnityEngine; public class endDoorCollision : MonoBehaviour { public bool endGameDoor = false; private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { endGameDoor = true; } } }