コード例 #1
0
        public InputState(InputControlProvider controlProvider, List <int> usedControlIndices)
        {
            this.controlProvider = controlProvider;

            var controlCount = controlProvider.controlCount;

            m_CurrentStates  = new float[controlCount];
            m_PreviousStates = new float[controlCount];
            m_Enabled        = new bool[controlCount];

            SetUsedControls(usedControlIndices);
        }
コード例 #2
0
 public InputState(InputControlProvider controlProvider)
     : this(controlProvider, null)
 {
 }