EndlessRocket/Assets/Scripts/Obstacle.cs
2023-07-19 00:28:23 +05:30

12 lines
250 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Obstacle : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D other){
Debug.Log(other.name);
PlayerController.instance.GameOver();
}
}