private void InputHold(InputOption input) { if (downInputs.Contains(input)) { downInputs.Remove(input); if (debug) { Debug.LogFormat("Input {0} hold", input.ToString()); } } }
private void InputRelease(InputOption input) { if (heldInputs.Contains(input)) { heldInputs.Remove(input); releasedInputs.Add(input); if (debug) { Debug.LogFormat("Input {0} release", input.ToString()); } } }
private void InputDown(InputOption input) { if (!heldInputs.Contains(input)) { timeSinceLastInput = 0.0f; downInputs.Add(input); heldInputs.Add(input); if (debug) { Debug.LogFormat("Input {0} down", input.ToString()); } } }