init
This commit is contained in:
11
Assets/Scripts/Obstacle.cs
Normal file
11
Assets/Scripts/Obstacle.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Obstacle : MonoBehaviour
|
||||
{
|
||||
void OnTriggerEnter2D(Collider2D other){
|
||||
Debug.Log(other.name);
|
||||
PlayerController.instance.GameOver();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user