Platformer2DUserControl.FixedUpdate C# (CSharp) Méthode

FixedUpdate() private méthode

private FixedUpdate ( ) : void
Résultat void
    void FixedUpdate()
    {
        // Read the inputs.
        bool crouch = Input.GetKey(KeyCode.LeftControl);
        float h = CrossPlatformInput.GetAxis("Horizontal");
        float v = CrossPlatformInput.GetAxis ("Vertical");

        // Pass all parameters to the character control script.
        character.Move( h, v, crouch , jump );

        // Reset the jump input once it has been used.
        jump = false;
    }
Platformer2DUserControl