I hate portals. This is just here for refelection.
This commit is contained in:
Pasha Bibko
2025-04-07 09:47:36 +01:00
parent 5091d6789a
commit 0498d30771
17 changed files with 1589 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TriggerTracker : MonoBehaviour
{
private bool m_IsTriggered = false;
public bool State() => m_IsTriggered;
private void OnTriggerEnter(Collider other) => m_IsTriggered = true;
private void OnTriggerExit(Collider other) => m_IsTriggered = false;
}