/// <summary> /// API for the inspector. Internal use only /// </summary> public void UpdateInputAxisProvider() { m_XAxis.SetInputAxisProvider(0, null); if (!m_HeadingIsSlave && VirtualCamera != null) { var provider = VirtualCamera.GetInputAxisProvider(); if (provider != null) { m_XAxis.SetInputAxisProvider(0, provider); } } }
/// <summary> /// API for the inspector. Internal use only /// </summary> public void UpdateInputAxisProvider() { m_XAxis.SetInputAxisProvider(0, null); m_YAxis.SetInputAxisProvider(1, null); var provider = GetInputAxisProvider(); if (provider != null) { m_XAxis.SetInputAxisProvider(0, provider); m_YAxis.SetInputAxisProvider(1, provider); } }
/// <summary> /// API for the inspector. Internal use only /// </summary> public void UpdateInputAxisProvider() { m_HorizontalAxis.SetInputAxisProvider(0, null); m_VerticalAxis.SetInputAxisProvider(1, null); if (VirtualCamera != null) { var provider = VirtualCamera.GetInputAxisProvider(); if (provider != null) { m_HorizontalAxis.SetInputAxisProvider(0, provider); m_VerticalAxis.SetInputAxisProvider(1, provider); } } }