I’m not sure what your question is, all I see is a mass wall of unformatted code.
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
This is the bare minimum of information to report:
- what you want
- what you tried
- what you expected to happen
- what actually happened, log output, variable values, and especially any errors you see
- links to actual Unity3D documentation you used to cross-check your work (CRITICAL!!!)
The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven’t put effort into finding the documentation, why should we bother putting effort into replying?
If you’re trying to shuffle, here’s a reference: