Menu Update

Gombok megjelenése, eltűnése
This commit is contained in:
bance
2023-03-16 17:40:08 +01:00
parent 45ba4ec576
commit 61de13d5eb
6 changed files with 267 additions and 145 deletions

View File

@@ -5,15 +5,19 @@ using UnityEditor;
public class WallCollision : MonoBehaviour
{
jatekmanager jatekmanager;
private void OnTriggerEnter(Collider other) {
if(other.gameObject.tag == "Player"){
Debug.Log("neki ment a falnak");
#if UNITY_EDITOR
jatekmanager.UpdateGameState(jatekmanager.GameState.Meghaltal);
/*#if UNITY_EDITOR
EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
#endif*/
}
}
}