Slide 170
Slide 170 text
void UpdateVisibleObjects()
{
foreach (var go in VROnlyObjects)
{
go.SetActive(!InAR);
}
// Start Astronaut and Drone animations in VR mode
if (!InAR)
{
if (m_Astronaut)
{
m_Astronaut.SetBool("IsDrilling", !InAR);
}
if (m_Drone != null)
{
m_Drone.SetBool("IsScanning", !InAR);
m_Drone.SetBool("IsShowingLaser", !InAR);
m_Drone.SetBool("IsFacingObject", !InAR);
}
}
}