Files
RoomAwareVR/Assets/_Scripts/Utility/StopRecordingTrigger.cs
T
Thorbjoern 643c071c51 First try
2025-06-28 16:40:31 +02:00

17 lines
496 B
C#

using System.Collections.Generic;
using System;
using UnityEngine;
public class StopRecordingTrigger : MonoBehaviour
{
public string tagFilter = "Player";
public static event Action OnRecordStop;
// Start is called once before the first execution of Update after the MonoBehaviour is created
private void OnTriggerEnter(Collider other)
{
if (!string.IsNullOrEmpty(tagFilter) && !other.gameObject.CompareTag(tagFilter)) return;
OnRecordStop.Invoke();
}
}