Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class FloorController : MonoBehaviour
- {
- [SerializeField] private Transform floorTile1;
- [SerializeField] private Transform floorTile2;
- // Update is called once per frame
- void FixedUpdate()
- {
- floorTile1.position -= new Vector3(GameManager.Instance.worldScrollingSpeed, 0, 0);
- floorTile2.position -= new Vector3(GameManager.Instance.worldScrollingSpeed, 0, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement