예제 #1
0
            /// <summary>
            /// Moves the character according to the input variables.
            /// </summary>
            /// <param name="manualMove">Is the character being moved manually?</param>
            public void Move(bool manualMove)
            {
                if (m_CharacterLocomotion.ManualMove != manualMove)
                {
                    return;
                }

                if (m_CharacterHandler != null)
                {
                    m_DeltaYawRotation = m_CharacterHandler.GetDeltaYawRotation();
                }
                m_CharacterLocomotion.Move(m_HorizontalMovement, m_ForwardMovement, m_DeltaYawRotation);
            }