Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Movimiento : MonoBehaviour {
  5. private float multiplicadorTiempo;
  6. public float velocidad = 1f;
  7.  
  8. // Use this for initialization
  9. void Start () {
  10. multiplicadorTiempo = 1f;
  11. }
  12.  
  13. // Update is called once per frame
  14. void Update () {
  15. multiplicadorTiempo += Time.deltaTime;
  16.  
  17. transform.Traslate(Vector3.down.normalized * multiplicadorTiempo * velocidad,Space.World);
  18. }
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement