Working EyeTracking with moving Hitpoint
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user