From 421fe41545cba32fbe956a4acb8f3db37ba9cd0e Mon Sep 17 00:00:00 2001 From: Lucas Beltrame Date: Sun, 1 May 2016 20:50:44 +0200 Subject: [PATCH] =?UTF-8?q?J'ai=20chang=C3=A9=20des=20trucs=20il=20me=20se?= =?UTF-8?q?mble.=20Vu=20qu'ils=20sont=20inclus=20dans=20le=20build,=20je?= =?UTF-8?q?=20les=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scenes/Level1.unity | Bin 62416 -> 62416 bytes .../Scripts/Lumberjack/LumberjackMovement.cs | 1 + 2 files changed, 1 insertion(+) diff --git a/Assets/Scenes/Level1.unity b/Assets/Scenes/Level1.unity index 8978ca9dda38c6164da3da2e5b20a90c1e61fb75..e5f53a65668013b33465d9999d7f189d5f2ff937 100644 GIT binary patch delta 22 gcmV+x0O|kG=L68^1F*2vlYq1+lYrF-v*6V59+y}Q{Qv*} delta 22 gcmV+x0O|kG=L68^1F*2vlaT8ulYrF-v*6V59-4IxL;wH) diff --git a/Assets/Scripts/Lumberjack/LumberjackMovement.cs b/Assets/Scripts/Lumberjack/LumberjackMovement.cs index 61949a1..f797611 100644 --- a/Assets/Scripts/Lumberjack/LumberjackMovement.cs +++ b/Assets/Scripts/Lumberjack/LumberjackMovement.cs @@ -26,6 +26,7 @@ void Update () movex *= speed; body.velocity = new Vector2(movex, body.velocity.y); + if (moveBackground) { background.GetComponent().Speed = movex * -1.0f;