Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Movimiento : MonoBehaviour {
- private float multiplicadorTiempo;
- public float velocidad = 1f;
- // Use this for initialization
- void Start () {
- multiplicadorTiempo = 1f;
- }
- // Update is called once per frame
- void Update () {
- multiplicadorTiempo += Time.deltaTime;
- transform.Traslate(Vector3.down.normalized * multiplicadorTiempo * velocidad,Space.World);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement