Exemplo n.º 1
0
 private float GetInput(string axisName)
 {
     if (useUnscaledTime)
     {
         return(InputHelpers.GetAxisRawSmooth(axisName, Time.unscaledDeltaTime, axisSmoothTime) * speed * Time.unscaledDeltaTime);
     }
     else
     {
         return(Input.GetAxis(axisName) * speed * Time.deltaTime);
     }
 }
Exemplo n.º 2
0
 private float CalculateInputAxis()
 {
     if (useUnscaledTime)
     {
         return(InputHelpers.GetAxisRawSmooth(rotationAxisName, Time.unscaledDeltaTime, axisSmoothTime) * speed * Time.unscaledDeltaTime);
     }
     else
     {
         return(Input.GetAxis(rotationAxisName) * speed * Time.deltaTime);
     }
 }