UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"create trigger event"
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TriggerObject : MonoBehaviour { private void OnTriggerEnter(Collider other) { Debug.Log("hit"); if (tag == "GameOver") { Debug.Log("gameOver"); } } }