aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Bybjerg <mikkel.bybjerg@hotmail.com>2019-04-27 11:14:52 +0200
committerMikkel Bybjerg <mikkel.bybjerg@hotmail.com>2019-04-27 11:14:52 +0200
commit5b4381a1993c4a67facc2d5d55b1d5c94f284ca7 (patch)
treef836743ded74550cf63fdf59b0cee72bed0bfbd9 /nGJ2019/Assets/Scripts/LevelScrolling.cs
parent12f21516ffd7caacfec259d6771677769384ffe8 (diff)
parent52d510d483bf0063c4bfaf6fd1e2c7c7ed49e063 (diff)
Merge branch 'master' of https://github.com/marcinzelent/ngj2019
Diffstat (limited to 'nGJ2019/Assets/Scripts/LevelScrolling.cs')
-rw-r--r--nGJ2019/Assets/Scripts/LevelScrolling.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/nGJ2019/Assets/Scripts/LevelScrolling.cs b/nGJ2019/Assets/Scripts/LevelScrolling.cs
index dd413f8..b40f70e 100644
--- a/nGJ2019/Assets/Scripts/LevelScrolling.cs
+++ b/nGJ2019/Assets/Scripts/LevelScrolling.cs
@@ -5,7 +5,7 @@ using UnityEngine;
public class LevelScrolling : MonoBehaviour
{
public int updateRate = 1;
- public Transform longcat;
+ public Transform obstacles;
public Transform background;
private Vector3 initialBgPos;
@@ -26,7 +26,7 @@ public class LevelScrolling : MonoBehaviour
void FixedUpdate()
{
MoveBackground();
- MoveLongcat();
+ MoveObstacles();
}
private void ResizeBackground()
@@ -52,9 +52,9 @@ public class LevelScrolling : MonoBehaviour
initialBgPos = background.position;
}
- private void MoveLongcat()
+ private void MoveObstacles()
{
- longcat.Translate(new Vector2(0.1f * updateRate, 0));
+ obstacles.Translate(new Vector2(0.1f * updateRate, 0));
}
private void MoveBackground()