Ejemplo n.º 1
0
 public bool LastChangedAfter(InputDevice otherDevice)
 {
     return(LastChangeTick > otherDevice.LastChangeTick);
 }
 public float GetValue(InputDevice inputDevice)
 {
     return(GetState(inputDevice) ? 1.0f : 0.0f);
 }
 public bool GetState(InputDevice inputDevice)
 {
     return(KeyCodeList.Any(Input.GetKey));
 }
Ejemplo n.º 4
0
 public bool GetState(InputDevice inputDevice)
 {
     return(!Mathf.Approximately(GetValue(inputDevice), 0.0f));
 }