Hello All,
Im making 2D Dressup game with NGUI. Im using UITexture for character’s shirts, pent, shoes and hats. Character have alteast 10-20 textures for shirts and other cloths. Should I load all texture from Resource folder or should I make public Texture array?
Example:
public UITexture[] shirs;
void NextShirt() {
characterShirt.mainTexture = shirs[index];
}
// OR
void NextShirt() {
characterShirt.mainTexture = Resources.Load("Shirt1") as Texture;
}
Which of method will you recommend? and which method is better in term of performance?
Thanks