blob: 6b7940c581a3818f50d770ce9d91f1519f00916b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class EndLevel : MonoBehaviour
{
private void OnTriggerEnter2D(Collider2D collision)
{
if(collision.gameObject.tag == "Player")
{
SceneManager.LoadScene("Final Scene");
}
}
}
|