Advertisement
drakon-firestone

Untitled

May 25th, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class FloorController : MonoBehaviour
  4. {
  5. [SerializeField] private Transform floorTile1;
  6. [SerializeField] private Transform floorTile2;
  7.  
  8. // Update is called once per frame
  9. void FixedUpdate()
  10. {
  11. floorTile1.position -= new Vector3(GameManager.Instance.worldScrollingSpeed, 0, 0);
  12. floorTile2.position -= new Vector3(GameManager.Instance.worldScrollingSpeed, 0, 0);
  13.  
  14.  
  15. }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement