Working EyeTracking with moving Hitpoint

This commit is contained in:
Thorbjoern
2025-06-02 19:26:42 +02:00
parent a5f152a23f
commit 0cb48fe1a9
17 changed files with 10909 additions and 692 deletions
@@ -15,10 +15,12 @@ namespace GhostSystem
public List<Transform> TrackedObjects;
private float _timer;
private bool _isRecording;
public bool _isRecording;
private bool supabaseReady = false;
private bool sceneIdReady = false;
public static event Action OnRecord;
public static event Action OnStopRecord;
private async void OnEnable()
{
@@ -95,6 +97,7 @@ namespace GhostSystem
{
if (!supabaseReady || !sceneIdReady) return;
_isRecording = true;
OnRecord?.Invoke();
Debug.Log($"Recording {SceneId}");
}
@@ -102,6 +105,7 @@ namespace GhostSystem
{
_isRecording = false;
sceneIdReady = false;
OnStopRecord?.Invoke();
Debug.Log($"Stop recording: {SceneId}");
}