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