|
@@ -6,10 +6,9 @@ namespace GFGGame
|
|
|
{
|
|
|
public class CustomSuitDataManager
|
|
|
{
|
|
|
- public static int currentIndex
|
|
|
- {
|
|
|
- get { return StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_CUSTOME_SUIT_INDEX); }
|
|
|
- }
|
|
|
+ private static int _currentIndex;
|
|
|
+ public static int currentIndex { get; set; }
|
|
|
+
|
|
|
|
|
|
private static Dictionary<int, CustomSuitData> _dataDic = new Dictionary<int, CustomSuitData>();
|
|
|
public static void SaveSuit(int index, List<int> arrayList, int bgID = 0, int suitId = 0, bool pic = false)
|
|
@@ -64,7 +63,7 @@ namespace GFGGame
|
|
|
{
|
|
|
if (currentIndex != index)
|
|
|
{
|
|
|
- StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_CUSTOME_SUIT_INDEX, index).Coroutine();
|
|
|
+ currentIndex = index;
|
|
|
}
|
|
|
CustomSuitSProxy.UpdateCustomSuit(index, EquipDataCache.cacher.equipDatas, EquipDataCache.cacher.bgId, EquipDataCache.cacher.suitId, EquipDataCache.cacher.picStatus).Coroutine();
|
|
|
}
|