2023-02-28 13:31:31 +01:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2023-03-07 13:55:45 +01:00
|
|
|
using UnityEditor;
|
2023-02-28 13:31:31 +01:00
|
|
|
|
|
|
|
|
public class WallCollision : MonoBehaviour
|
|
|
|
|
{
|
2023-03-16 17:40:08 +01:00
|
|
|
jatekmanager jatekmanager;
|
|
|
|
|
|
2023-02-28 13:31:31 +01:00
|
|
|
private void OnTriggerEnter(Collider other) {
|
|
|
|
|
if(other.gameObject.tag == "Player"){
|
2023-03-16 17:40:08 +01:00
|
|
|
|
2023-02-28 13:31:31 +01:00
|
|
|
Debug.Log("neki ment a falnak");
|
2023-03-20 19:56:27 +01:00
|
|
|
jatekmanager.Instance.UpdateGameState(jatekmanager.GameState.Meghaltal);
|
2023-03-16 17:40:08 +01:00
|
|
|
/*#if UNITY_EDITOR
|
2023-03-07 13:55:45 +01:00
|
|
|
EditorApplication.isPlaying = false;
|
|
|
|
|
#else
|
|
|
|
|
Application.Quit();
|
2023-03-16 17:40:08 +01:00
|
|
|
#endif*/
|
|
|
|
|
|
2023-02-28 13:31:31 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|