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 GameObject hitPoint;
|
||||||
|
|
||||||
|
public bool heatIsActive = false;
|
||||||
|
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
RaycastHit hit;
|
RaycastHit hit;
|
||||||
@@ -26,7 +28,11 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
|
|||||||
if ( hitPoint != null && Physics.Raycast(transform.position, rayCastDirection, out hit, rayDistance, gazableLayers))
|
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);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ EditorBuildSettings:
|
|||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/_Scenes/CQB/Room 12.unity
|
path: Assets/_Scenes/CQB/Room 12.unity
|
||||||
guid: 183ff68200b7fb8498ca55bf95de872c
|
guid: 183ff68200b7fb8498ca55bf95de872c
|
||||||
- enabled: 1
|
- enabled: 0
|
||||||
path: Assets/_Scenes/CQB/End.unity
|
path: Assets/_Scenes/CQB/End.unity
|
||||||
guid: 1aa1485b0239d5943aaca87a1154ad67
|
guid: 1aa1485b0239d5943aaca87a1154ad67
|
||||||
m_configObjects:
|
m_configObjects:
|
||||||
|
|||||||
Reference in New Issue
Block a user