mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
PAIN
I hate portals. This is just here for refelection.
This commit is contained in:
13
Assets/Scripts/TriggerTracker.cs
Normal file
13
Assets/Scripts/TriggerTracker.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user