This repository has been archived on 2025-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
|
using UnityEngine;
|
|
|
|
public class EndTrigger : MonoBehaviour
|
|
{
|
|
void OnTriggerEnter(Collider cInfo) {
|
|
if (cInfo.tag!="Obstacle") {
|
|
FindObjectOfType<GameManager>().CompleteLevel();
|
|
}
|
|
}
|
|
}
|