diff options
Diffstat (limited to 'nGJ2019/Assets/Scripts')
| -rw-r--r-- | nGJ2019/Assets/Scripts/LevelScrolling.cs | 104 |
1 files changed, 57 insertions, 47 deletions
diff --git a/nGJ2019/Assets/Scripts/LevelScrolling.cs b/nGJ2019/Assets/Scripts/LevelScrolling.cs index 0122a69..fac0a13 100644 --- a/nGJ2019/Assets/Scripts/LevelScrolling.cs +++ b/nGJ2019/Assets/Scripts/LevelScrolling.cs @@ -4,66 +4,76 @@ using UnityEngine; public class LevelScrolling : MonoBehaviour
{
- public int UpdateRate = -5;
- public List<Transform> Obstacles;
- public Transform Background;
+ public int UpdateRate = -5;
+ public List<GameObject> Obstacles;
+ public Transform Background;
- private Vector3 initialBgPos;
- private float[] backgroundSize;
+ private Vector3 initialBgPos;
+ private float[] backgroundSize;
- // Start is called before the first frame update
- void Start()
- {
- ResizeBackground();
- }
+ // Start is called before the first frame update
+ void Start()
+ {
+ ResizeBackground();
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
|