using System.Collections; using System.Collections.Generic; using UnityEngine; public class EndScreen : MonoBehaviour { // Start is calledcbefore the first frame update public GameObject credits; private void OnTriggerEnter2D(Collider2D other) { credits.SetActive(true); } }