static public void SetSpriteColorByQulity(UISprite sp, int qulity) { switch (qulity) { case 1: sp.ShowAsButtonWhite(); break; case 2: sp.ShowAsButtonGreen(); break; case 3: sp.ShowAsButtonBlue(); break; case 4: sp.ShowAsButtonPurpose(); break; case 5: sp.ShowAsButtonDarkGold(); break; case 6: sp.ShowAsButtonDarkGold(); break; default: sp.ShowAsButtonNormal(); break; } }