mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
14 lines
358 B
C#
14 lines
358 B
C#
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;
|
|
}
|