Files
PuzzleColorBall/Assets/Scripts/WallCollision.cs
bance 61de13d5eb Menu Update
Gombok megjelenése, eltűnése
2023-03-16 17:40:08 +01:00

24 lines
584 B
C#

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