Skip to content

Conversation

@ShaneRH
Copy link
Member

@ShaneRH ShaneRH commented Jun 1, 2022

This change allows us to pass a delta-time value into the UpdateModule method. I find that very often I end up making this change anyway, as I want the parent Update look to calculate and generate the deltaTime which I pass through. This also really improves things when we want to test/mock modules (we can just pass in a bigger delta time)

_canMove = false;
}
public void UpdateModule()
public void UpdateModule(float? delta)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe deltaTime, or dt?

@RossRH RossRH merged commit 0a715d8 into master Jun 1, 2022
@RossRH RossRH deleted the feature/updatemodule-deltatime branch June 1, 2022 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants