/// <summary> /// Update is called every frame, if the MonoBehaviour is enabled. /// </summary> void Update() { if (isScoreIncreasing) { inputs = input.inputs; score += (int)(Time.deltaTime * 100); scoreText.text = $"Score: {score}"; } }
public bool GetInputUp(InputManager.Inputs input) { return(!this.inputStates[input].down && this.inputStates[input].downLastFrame); }
public void HandleInput(InputManager.Inputs input, bool down) { this.inputStates[input].down = down; }
public bool GetInput(InputManager.Inputs input) { return(this.inputStates[input].down); }