jump script unity 2d code example Example: unity 2d jump rigidbody2D.AddForce(new Vector2(0, 10), ForceMode2D.Impulse);