diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2019-04-27 22:02:42 +0200 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2019-04-27 22:02:42 +0200 |
commit | 932a418c3f2251d434b67d115aaa380b51685ef7 (patch) | |
tree | 560e0851521252a85ba65abc06310d3ca24a5897 /nGJ2019/Assets/Scripts/LevelScrolling.cs | |
parent | c6cc2672f7033d099630238b72549b42507e6ebd (diff) |
Added net obstacle
Diffstat (limited to 'nGJ2019/Assets/Scripts/LevelScrolling.cs')
-rw-r--r-- | nGJ2019/Assets/Scripts/LevelScrolling.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nGJ2019/Assets/Scripts/LevelScrolling.cs b/nGJ2019/Assets/Scripts/LevelScrolling.cs index 9835f0e..7ca89e3 100644 --- a/nGJ2019/Assets/Scripts/LevelScrolling.cs +++ b/nGJ2019/Assets/Scripts/LevelScrolling.cs @@ -49,7 +49,7 @@ public class LevelScrolling : MonoBehaviour Background.localScale = new Vector3(finalHeight, finalHeight, 1);
var viewportX = Camera.main.ViewportToWorldPoint(new Vector3(0, 1, 0)).x;
- Background.position = new Vector3(viewportX * -1, 0, 0);
+ Background.position = new Vector3(viewportX * -1, 0, 10);
initialBgPos = Background.position;
}
|