Finish Point
This tutorial looks at adding a Finish Point to a level. Upon the Player Character arriving at the Finish Point, a level completion screen will appear. This can then be expanded by adding sound effects or making a more complex level completion screen.
Example FinishPointScript Code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FinishPointScript : MonoBehaviour
{
public GameObject YouSurvivedImage;
private void OnTriggerEnter2D(Collider2D other)
{
if (other.name == "Player")
{
YouSurvivedImage.SetActive(true);
}
}
}