Commit 074af41d authored by Christopher Benes's avatar Christopher Benes

MainCamera fix

parent 64c86a79
This diff is collapsed.
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using EndMissionScript;
public class EndScreen : MonoBehaviour
{
......@@ -8,7 +9,10 @@ public class EndScreen : MonoBehaviour
public GameObject credits;
private void OnTriggerEnter2D(Collider2D other)
{
credits.SetActive(true);
{
if (EndMission.em.mission && other.tag.Equals("Player"))
{
credits.SetActive(true);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment