Added proper heat toggle
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,8 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
|
||||
|
||||
public GameObject hitPoint;
|
||||
|
||||
public bool heatIsActive = false;
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
RaycastHit hit;
|
||||
@@ -26,7 +28,11 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
|
||||
if ( hitPoint != null && Physics.Raycast(transform.position, rayCastDirection, out hit, rayDistance, gazableLayers))
|
||||
{
|
||||
hitPoint.transform.position = new Vector3(hit.point.x, hit.point.y, hit.point.z);
|
||||
FindVisibleTargets(hitPoint.transform.position);
|
||||
if (heatIsActive)
|
||||
{
|
||||
FindVisibleTargets(hitPoint.transform.position);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +58,10 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void IsHeatActive(bool heatActive)
|
||||
{
|
||||
heatIsActive = heatActive;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user