ConstStoreId.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using UnityEngine;
  3. namespace GFGGame
  4. {
  5. public class ConstStoreId
  6. {
  7. public const int DIAMOND_STORE_ID = 1;//钻石商店
  8. public const int CLOTHING_STORE_ID = 2;//服装店
  9. public const int LUCKY_BOX_STORE_ID = 3;//抽卡兑换商店
  10. public const int LUCKY_BOX_ACTIVITY_STORE_ID = 4;//抽卡活动兑换商店
  11. public const string DIAMOND_STORE_TITLE = "钻石商城";//钻石商店
  12. public const string CLOTHING_STORE_TITLE = "服装店";//服装店
  13. public const string LUCKY_BOX_STORE_TITLE = "落星商城";//抽卡兑换商店
  14. public const string LUCKY_BOX_ACTIVITY_STORE_TITLE = "活动商城";//抽卡活动兑换商店
  15. private static SortedList _storeTitleList;
  16. public static SortedList CardStateList()
  17. {
  18. if (ConstStoreId._storeTitleList == null)
  19. {
  20. ConstStoreId._storeTitleList = new SortedList();
  21. ConstStoreId._storeTitleList.Add(ConstStoreId.DIAMOND_STORE_ID, ConstStoreId.DIAMOND_STORE_TITLE);
  22. ConstStoreId._storeTitleList.Add(ConstStoreId.CLOTHING_STORE_ID, ConstStoreId.CLOTHING_STORE_TITLE);
  23. ConstStoreId._storeTitleList.Add(ConstStoreId.LUCKY_BOX_STORE_ID, ConstStoreId.LUCKY_BOX_STORE_TITLE);
  24. ConstStoreId._storeTitleList.Add(ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID, ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_TITLE);
  25. }
  26. return ConstStoreId._storeTitleList;
  27. }
  28. }
  29. }