Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void Update()
{
bool controllerConnected = OVRInput.IsControllerConnected(m_controller);
if ((controllerConnected != m_prevControllerConnected) || !m_prevControllerConnectedCached)
{
// (追加した行)
m_controller = OVRInput.GetActiveController();
m_modelOculusGoController.SetActive(controllerConnected && m_isOculusGo);
m_modelGearVrController.SetActive(controllerConnected && !m_isOculusGo);
m_prevControllerConnected = controllerConnected;
m_prevControllerConnectedCached = true;
}
if (!controllerConnected)
{
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment