thieumao

Di chuyen Unity3D

Mar 21st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Move : MonoBehaviour {
  5.  
  6.     float speed = 1f;
  7.  
  8.     // Use this for initialization
  9.     void Start () {
  10.    
  11.     }
  12.    
  13.     // Update is called once per frame
  14.     void Update () {
  15.         transform.Translate(-Vector2.up * speed * Time.deltaTime);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment