14 lines
316 B
C#
14 lines
316 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class WallCollision : MonoBehaviour
|
|
{
|
|
private void OnTriggerEnter(Collider other) {
|
|
if(other.gameObject.tag == "Player"){
|
|
Debug.Log("neki ment a falnak");
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|