So in NinjaSnowWar.as controls are updated during Update and then assigned to a player controlled ninja. Ninja.as uses this controls during FixedUpdate.
What if I want to use some controls in regular update? For example mouse look is better to be handled during regular update. How can I ensure that main script will be updated before any other objects? Because otherwise there will be one frame lag.
Is there other good ways to handle controls in script?
Also, I just noticed that Ninja Snow War uses:
SubscribeToEvent(gameScene, "SceneUpdate", "HandleUpdate");
While all other samples use:
SubscribeToEvent("Update", "HandleUpdate");
Why it’s so? And what is the difference?