예제 #1
0
        internal void BeginUpdate()
        {
            var stateCount = m_Controls.Count;

            for (var index = 0; index < stateCount; ++index)
            {
                if (m_Controls[index] == null || !m_Controls[index].enabled)
                {
                    continue;
                }

                if (InputSystem.listeningForBinding)
                {
                    if (m_Controls[index].changedValue && !m_Controls[index].isDefaultValue)
                    {
                        InputSystem.RegisterBinding(controlProvider.GetControl(index));
                    }
                }

                m_Controls[index].AdvanceFrame();
            }
        }