/// <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}";
     }
 }
Пример #2
0
 public bool GetInputUp(InputManager.Inputs input)
 {
     return(!this.inputStates[input].down && this.inputStates[input].downLastFrame);
 }
Пример #3
0
 public void HandleInput(InputManager.Inputs input, bool down)
 {
     this.inputStates[input].down = down;
 }
Пример #4
0
 public bool GetInput(InputManager.Inputs input)
 {
     return(this.inputStates[input].down);
 }