Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public class MoveBall_ : MonoBehaviour {
  2.  
  3.  
  4. public float velocidad = 10f;
  5.  
  6.  
  7. private void Update()
  8. {
  9. transform.Translate(new Vector3(1f, 0f, 0f) * velocidad * Time.deltaTime);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement