Let’s say I have the following:
function FixedUpdate () {
if (Input.GetAxis ("Pitch") == 1.0) {
pushTimer += Time.deltaTime;
rigidbody.AddRelativeForce (-Vector3.up*200); // Applies Forward force to the bike
}
}
Is it possible to force “pushTimer += Time.deltaTime;” to run every frame while inside FixedUpdate, or do I HAVE to us Update for that?