Advertisement
ZieleZ

MoveTrail.cs

Oct 21st, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class MoveTrail : MonoBehaviour {
  5.  
  6.     public int moveSpeed =230; 
  7.    
  8.     // Update is called once per frame
  9.     void Update () {
  10.         transform.Translate (Vector3.right * Time.deltaTime * moveSpeed);
  11.         Destroy (gameObject, 1);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement