Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Rigidbody rb;
- //عند start حط:
- rb = GetComponent<Rigidbody>();
- //و بعدين في المكان الانت عايز تعمل في addforce حط:
- rb.velocity.x = 400;
- rb.velocity.y = 400;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement