Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float reelPos;
- void MoveReel()
- {
- reelPos += ReelSpeed;
- for (int x = 0; x < Symbols.Length; x++)
- {
- float symbolPos = reelPos + (x * symbolHeight);
- float wrappedPos = Mathf.Repeat(symbolPos, Symbols.Length * symbolHeight);
- Symbols[x].transform.position = new Vector3(transform.position.x, wrappedPos ,transform.position.z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment