coin backend start

This commit is contained in:
2023-03-07 13:55:45 +01:00
parent e1b689f6c5
commit 927ea1f885
4 changed files with 53 additions and 24 deletions

View File

@@ -1,13 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class WallCollision : MonoBehaviour
{
private void OnTriggerEnter(Collider other) {
if(other.gameObject.tag == "Player"){
Debug.Log("neki ment a falnak");
Application.Quit();
#if UNITY_EDITOR
EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
}
}
}