Skip to content
Snippets Groups Projects
Commit 01576b7f authored by DrCash-KMark's avatar DrCash-KMark
Browse files

fix for scroller

fixed out of array problem when the bg loop should start
parent 57300c4c
Branches Moving_bg
No related tags found
1 merge request!35Spritok alkalmazasa uni 40
...@@ -32,7 +32,7 @@ public class BackgroundRoller : MonoBehaviour ...@@ -32,7 +32,7 @@ public class BackgroundRoller : MonoBehaviour
if (currentSprite >= bgSprites.Count - 1) if (currentSprite >= bgSprites.Count - 1)
{ {
currentSprite = -1; //never do this at home kids currentSprite = 0; //never do this at home kids
} }
//if there are sprites left & we are over half the height, we instantiate another sprite at the top //if there are sprites left & we are over half the height, we instantiate another sprite at the top
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment