/// <summary> /// Rad all PhysicalInputs in InputSource. /// </summary> public virtual void ReadInputs() { for (int i = 0; i < physicalInputs.Count; i++) { PhysicalInput input = physicalInputs[i]; input.Read(); } }
/// <summary> /// Check the correctness of the input configuration. /// </summary> public void CheckInputs() { for (int i = 0; i < Count; i++) { for (int j = 0; j < this[i].PhysicalInputs.Count; j++) { PhysicalInput input = this[i].PhysicalInputs [j]; if (input is ButtonInput) { if ((input as ButtonInput).keyCode == KeyCode.None) { Debug.LogErrorFormat(Input_KeyCode_Error_Message, this[i].GetType(), input.InputName); } } } } }