This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class ScrollingBackground : MonoBehaviour { | |
// Here's what this script does, step by step: | |
// Duplicates the object | |
// Scrolls both at a given scrollSpeed | |
// When an object's full length has been scrolled, it is placed on the duplicate's original position | |
// Last step is repeated for both objects indefinitely |
NewerOlder