Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void Start()
  2. {
  3. ballbody = GetComponent<Rigidbody>();
  4. roll_default = GetComponent<AudioSource>();
  5. while(true)
  6. {
  7. while (!Input.GetKeyDown(KeyCode.Space)) yield;
  8. ballbody.AddForce(0f,50.0f,0f);
  9. yield return new WaitForSeconds(5);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement