Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<Texture> LoadTextures (String prefix, int numTextures)
- {
- List<Texture> textures = new List<Texture> ();
- for (var i = 0; i < numTextures; i++ )
- {
- var www = new WWW(prefix + i);
- yield www;
- textures.Add(www.texture);
- }
- return textures;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement