ConstDressRarity.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using UnityEngine;
  3. namespace GFGGame
  4. {
  5. public class ConstDressRarity
  6. {
  7. public const int Rarity_TIANYI = 4;
  8. public const int Rarity_DIANCANG = 3;
  9. public const int Rarity_ZHENXI = 2;
  10. public const int Rarity_FANPIN = 1;
  11. public const string TITLE_TIANYI = "天衣";
  12. public const string TITLE_DIANCANG = "典藏";
  13. public const string TITLE_ZHENXI = "珍稀";
  14. public const string TITLE_FANPIN = "凡品";
  15. private static SortedList _dressRarityList;
  16. public static SortedList DressRarityList()
  17. {
  18. if (ConstDressRarity._dressRarityList == null)
  19. {
  20. ConstDressRarity._dressRarityList = new SortedList();
  21. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_FANPIN, ConstDressRarity.TITLE_FANPIN);
  22. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_ZHENXI, ConstDressRarity.TITLE_ZHENXI);
  23. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_DIANCANG, ConstDressRarity.TITLE_DIANCANG);
  24. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_TIANYI, ConstDressRarity.TITLE_TIANYI);
  25. }
  26. return ConstDressRarity._dressRarityList;
  27. }
  28. }
  29. }