Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class MoveTrail : MonoBehaviour {
- public int moveSpeed =230;
- // Update is called once per frame
- void Update () {
- transform.Translate (Vector3.right * Time.deltaTime * moveSpeed);
- Destroy (gameObject, 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement