/// <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);
         }
     }
 }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
 /// <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);
         }
     }
 }