karen_constantine

Untitled

Apr 9th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class PipeController : MonoBehaviour
  4. {
  5. public float speed = 2f;
  6.  
  7. void Update()
  8. {
  9. transform.position += Vector3.left * speed * Time.deltaTime;
  10. }
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment