EndScreen.cs 388 Bytes
Newer Older
Christopher Benes's avatar
Christopher Benes committed
1
using System.Collections;
Isa's avatar
Isa committed
2 3
using System.Collections.Generic;
using UnityEngine;
Christopher Benes's avatar
Christopher Benes committed
4
using EndMissionScript;
Isa's avatar
Isa committed
5 6 7 8 9 10 11

public class EndScreen : MonoBehaviour
{
    // Start is calledcbefore the first frame update
    public GameObject credits;

    private void OnTriggerEnter2D(Collider2D other)
Christopher Benes's avatar
Christopher Benes committed
12 13 14 15 16
	{
		if (EndMission.em.mission && other.tag.Equals("Player"))
		{
			credits.SetActive(true);
		}
Isa's avatar
Isa committed
17 18
    }
}