private static void UpdateTimedInputClocks() { if (timedInputArray != null) { while (timedInputIndex < timedInputArray.Length) { if (timedInputArray[timedInputIndex].updateTimeGlobally) { if (InputX.Pressed(timedInputArray[timedInputIndex].inputs)) { timedInputArray[timedInputIndex].clock += Time.unscaledDeltaTime; } else { timedInputArray[timedInputIndex].clock = 0; } } timedInputIndex++; } timedInputIndex = 0; } }
public bool Pressed(bool firstFixedOnly = false) { return(InputX.Pressed(this.inputs, firstFixedOnly)); }