Пример #1
0
    void UpdateJump()
    {
        var velocity = playerRigidBody.velocity;

        playerRigidBody.velocity = playerJump.ApplyVelocity(
            initial: velocity,
            deltaTime: Time.deltaTime
            );
    }
Пример #2
0
    public PlayerJumpRobot HoldJumpForMaxTime()
    {
        playerJump.ApplyVelocity(initialVelocity, motionConstants.jumpTime + 1);

        return(this);
    }