This commit is contained in:
RochesterX
2025-03-31 18:28:05 -04:00
parent edec31d700
commit 5a8de32de0
14 changed files with 1241 additions and 445 deletions

15
Assets/ObstacleCourse.cs Normal file
View File

@@ -0,0 +1,15 @@
using UnityEngine;
public class ObstacleCourse : MonoBehaviour
{
public static GameObject playerWon;
void OnTriggerEnter2D(Collider2D collision)
{
if (collision.gameObject.CompareTag("Player"))
{
playerWon = collision.gameObject;
GameManager.Instance.GameOver();
}
}
}