It's simple. Just add Rigidbody2D on your ball game object. then use this code: private Rigidbody2D rigid; private Vector2 movement; ...
確定! 回上一頁