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
@@ -1,5 +1,6 @@
using GhostSystem;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Unity.Netcode;
using UnityEngine;
@@ -10,6 +11,9 @@ public class LocalPlayerReference : NetworkBehaviour
public List<Transform> myObjects;
public EyeTrackingCollisionPoints collisionPoints;
public static event Action OnPlayerReady;
public override void OnNetworkSpawn()
{
if (IsOwner)
@@ -27,6 +31,9 @@ public class LocalPlayerReference : NetworkBehaviour
ghostRecorder.TrackedObjects.Add(obj);
}
}
ghostRecorder.TrackedObjects.Add(collisionPoints.SpawnHitPoint());
OnPlayerReady?.Invoke();
Debug.LogError("Invoked OnPlayerReady");
}
}