This commit is contained in:
RochesterX
2025-04-16 13:44:03 -04:00
parent 3cce475c6f
commit 186811be42
24 changed files with 6703 additions and 1621 deletions

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();
}
}
}