Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | Clear();
|
| | | }
|
| | | }
|
| | | else if (_npcConfig.NPCType == (int)E_NpcType.Collect)
|
| | | else if (_npcConfig.NPCType == (int)E_NpcType.Collect
|
| | | || _npcConfig.NPCType == (int)E_NpcType.Flag)
|
| | | {
|
| | | float _chkDist = GeneralDefine.CloseNpcDist + _npcConfig.ModelRadius + 0.3f;
|
| | | if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.MountDogz, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1);
|
| | | }
|
| | |
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType,thirdType, out thirdTypeData);
|
| | | if(thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1,10000,isIncreaseRate);
|
| | | }
|
| | |
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Ticket, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | CreateTypeCell();
|
| | | }
|
| | |
| | | fixedItemIndexDict.Clear();
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | List<int> composeCountlist = new List<int>();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | int[] fixedIds = compoundModel.itemID;
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedItemIndexDic();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,GetPlayMatEffect(),1);
|
| | | }
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Item, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | SetFixedItemIndexDic();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,composeEffect,1);
|
| | | }
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | List<int> composeCountlist = new List<int>();
|
| | | fixedItemIndexDict.Clear();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Wings, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedMatIndex();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict, GetPlayMatEffect(), 1, successRate);
|
| | | }
|
| | |
| | | {
|
| | | currentShopId = 0;
|
| | | helpPointShoplist.Clear();
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= UpdateFBHelpPoint;
|
| | | storeModel.UpdateHelpPointExchangeEvent -= UpdateHelpPointShop;
|
| | | storeModel.RefreshTCBPlayerDataEvent -= UpdateFBHelpPoint;
|
| | | TimeMgr.Instance.OnDayEvent -= UpdateDay;
|
| | | }
|
| | |
|
| | |
| | | shopDayLocalSave = StringUtility.Contact("ShopDayLocalSave",playerId);
|
| | | shopLifeLocalSave = StringUtility.Contact("ShopLifeLocalSave",playerId);
|
| | | curDayLocalSave = StringUtility.Contact("CurDayLocalSave",playerId);
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += UpdateFBHelpPoint;
|
| | | storeModel.RefreshTCBPlayerDataEvent += UpdateFBHelpPoint;
|
| | | TimeMgr.Instance.OnDayEvent += UpdateDay;
|
| | | storeModel.UpdateHelpPointExchangeEvent += UpdateHelpPointShop;
|
| | | GetLocalSaveData();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void UpdateFBHelpPoint(PlayerDataRefresh type)
|
| | | {
|
| | | if (type != PlayerDataRefresh.FBHelpPoint) return;
|
| | | if (type != PlayerDataRefresh.FBHelpPoint |
| | | || !FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
|
| | |
|
| | | var storeDatas = storeModel.TryGetStoreDatas((int)StoreFunc.IntegralStore);
|
| | | if(storeDatas != null)
|
| | | {
|
| | | for(int i = 0; i < storeDatas.Count; i++)
|
| | | {
|
| | | var storeData = storeDatas[i];
|
| | | int pushType = 0;
|
| | | storeModel.TryGetPushTypeByShopId(storeData.shopId,out pushType);
|
| | | if(pushType != 0)
|
| | | {
|
| | | int remainNum = 0;
|
| | | bool isSellOut = storeModel.TryGetIsSellOut(storeData.storeConfig,out remainNum);
|
| | | ulong haveMoney = UIHelper.GetMoneyCnt(storeData.storeConfig.MoneyType);
|
| | | bool isEnoughMoney = haveMoney >= (ulong)storeData.storeConfig.MoneyNumber ? true : false;
|
| | | if(!isSellOut && isEnoughMoney)
|
| | | {
|
| | | UpdateHelpPointShop(storeData.shopId);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | for(int i = 0; i < helpPointShoplist.Count; i++)
|
| | | {
|
| | |
| | | {
|
| | | helpPointShoplist.Remove(shopId);
|
| | | }
|
| | | int type = 0;
|
| | | bool isPush = storeModel.TryGetPushTypeByShopId(shopId, out type);
|
| | | SetLocalSaveData(type, shopId);
|
| | | }
|
| | |
|
| | | private void UpdateHelpPointShop(int shopId)
|
| | |
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(shopId);
|
| | | if (storeConfig == null) return;
|
| | |
|
| | | if(!IsAlreadPush(shopId))
|
| | | {
|
| | | currentShopId = shopId;
|
| | | AddHelpPointShop(shopId);
|
| | | if (UpdateHelpPointShopEvent != null)
|
| | | {
|
| | | UpdateHelpPointShopEvent();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void GetNextHelpPointShop(int shopId)
|
| | | {
|
| | | RemoveHelpPointShop(shopId);
|
| | | int length = helpPointShoplist.Count;
|
| | | currentShopId = length == 0 ? 0 : helpPointShoplist[length - 1];
|
| | | if(UpdateHelpPointShopEvent != null)
|
| | | {
|
| | | UpdateHelpPointShopEvent();
|
| | |
| | |
|
| | | public bool IsAlreadPush(int shopId)
|
| | | {
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(shopId);
|
| | | if (storeConfig == null) return false;
|
| | |
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(storeConfig.ItemID);
|
| | | switch((ItemType)itemConfig.Type)
|
| | | int type = 0;
|
| | | storeModel.TryGetPushTypeByShopId(shopId, out type);
|
| | | switch (type)
|
| | | {
|
| | | case ItemType.OfflineCard:
|
| | | case 1:
|
| | | if(todayShoplist != null |
| | | && todayShoplist.Contains(shopId))
|
| | | {
|
| | | return true;
|
| | | }
|
| | | break;
|
| | | case ItemType.MountDan:
|
| | | break;
|
| | | default:
|
| | | case 2:
|
| | | if (lifeShoplist != null
|
| | | && lifeShoplist.Contains(shopId))
|
| | | {
|
| | | return true;
|
| | | }
|
| | | break;
|
| | | }
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using TableConfig;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FBHelpPointExchageNotify : MonoBehaviour
|
| | | {
|
| | | [SerializeField] CommonItemBaisc itemBaisc;
|
| | | [SerializeField] Text titleText;
|
| | | [SerializeField] Button closeBtn;
|
| | | [SerializeField] Button gotoBtn;
|
| | |
|
| | | FBHelpPointExchageModel ExchageModel { get { return ModelCenter.Instance.GetModel<FBHelpPointExchageModel>(); } }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
|
| | | public void Awake()
|
| | | {
|
| | | gotoBtn.AddListener(ClickGoto);
|
| | | closeBtn.AddListener(GetNextPush);
|
| | | }
|
| | |
|
| | | public void SetDisplay()
|
| | | {
|
| | | int shopId = ExchageModel.currentShopId;
|
| | | this.gameObject.SetActive(shopId != 0);
|
| | | if (shopId == 0) return;
|
| | |
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(shopId);
|
| | | if(storeConfig != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(storeConfig.ItemID);
|
| | | itemBaisc.Init(cellModel);
|
| | | itemBaisc.cellBtn.RemoveAllListeners();
|
| | | itemBaisc.cellBtn.AddListener(()=>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(storeConfig.ItemID);
|
| | | tipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | public void ClickGoto()
|
| | | {
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(ExchageModel.currentShopId);
|
| | | switch ((StoreFunc)storeConfig.ShopType)
|
| | | {
|
| | | case StoreFunc.WeekStore:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc1);
|
| | | break;
|
| | | case StoreFunc.CommonStore:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc2);
|
| | | break;
|
| | | case StoreFunc.GrowStrongerStore:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc3);
|
| | | break;
|
| | | case StoreFunc.BindStore:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc4);
|
| | | break;
|
| | | case StoreFunc.IntegralStore:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc5);
|
| | | break;
|
| | | }
|
| | | GetNextPush();
|
| | | }
|
| | |
|
| | | public void GetNextPush()
|
| | | {
|
| | | ExchageModel.GetNextHelpPointShop(ExchageModel.currentShopId);
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 644090f0bbd882143bdd1ed02c53484d |
| | | timeCreated: 1542177585 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | [SerializeField] FairyGrabBossHelpBehaviour m_FairyGrabBossHelpBehaviour;
|
| | | [SerializeField] DogzNotifyBehaviour m_DogzNotifyBehaviour;
|
| | | [SerializeField] InSevenDayBehavior m_InSevenDayBehavior;
|
| | | [SerializeField] FBHelpPointExchageNotify m_HelpPointExchangeNotify;
|
| | |
|
| | | WorldBossModel worldBossModel { get { return ModelCenter.Instance.GetModel<WorldBossModel>(); } }
|
| | | BossHomeModel bossHomeModel { get { return ModelCenter.Instance.GetModel<BossHomeModel>(); } }
|
| | | ElderGodAreaModel elderGodAreaModel { get { return ModelCenter.Instance.GetModel<ElderGodAreaModel>(); } }
|
| | |
| | | DogzDungeonModel dogzDungeonModel { get { return ModelCenter.Instance.GetModel<DogzDungeonModel>(); } }
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | |
|
| | | FBHelpPointExchageModel exchageModel { get { return ModelCenter.Instance.GetModel<FBHelpPointExchageModel>(); } }
|
| | | FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } }
|
| | | BetterEquipGetModel betterEquipGetModel { get { return ModelCenter.Instance.GetModel<BetterEquipGetModel>(); } }
|
| | | RealmBetterEquipModel realmEquipModel { get { return ModelCenter.Instance.GetModel<RealmBetterEquipModel>(); } }
|
| | |
| | | CheckFairyGrabBossHelp();
|
| | | CheckDogzNotify();
|
| | | InSevenDayShow();
|
| | | CheckHelpPointExchange();
|
| | | exchageModel.UpdateHelpPointShopEvent += CheckHelpPointExchange;
|
| | | playerPack.RefreshDecomAttrAct += CheckEquipDecompose;
|
| | | betterEquipGetModel.showEquipRefreshEvent += CheckBetterEquip;
|
| | | realmEquipModel.showEquipRefreshEvent += CheckRealmBetterEquip;
|
| | |
| | | public void UnInit()
|
| | | {
|
| | | fairyGrabBossModel.helpCoolDown = false;
|
| | | exchageModel.UpdateHelpPointShopEvent -= CheckHelpPointExchange;
|
| | | playerPack.RefreshDecomAttrAct -= CheckEquipDecompose;
|
| | | betterEquipGetModel.showEquipRefreshEvent -= CheckBetterEquip;
|
| | | preciousItemGetModel.showItemRefreshEvent -= CheckPreciousItem;
|
| | |
| | | dogzModel.UpdateDogzPutRedEvent -= CheckDogzNotify;
|
| | | }
|
| | |
|
| | | private void CheckHelpPointExchange()
|
| | | {
|
| | | int pushId = exchageModel.currentShopId;
|
| | | m_HelpPointExchangeNotify.gameObject.SetActive(pushId != 0);
|
| | | if(pushId != 0)
|
| | | {
|
| | | m_HelpPointExchangeNotify.SetDisplay();
|
| | | }
|
| | | }
|
| | |
|
| | | private void CheckRealmBetterEquip()
|
| | | {
|
| | | if (string.IsNullOrEmpty(realmEquipModel.currentEquipGuid))
|
| | |
| | | public Dictionary<int,Dictionary<int,int>> JobReplaceIdDict = new Dictionary<int, Dictionary<int, int>>();
|
| | | public Dictionary<int, string> resetTimeDict { get; private set; }
|
| | | public Dictionary<int, int> showCoinsUIDict { get; private set; }
|
| | | public int[] StoreRedIdlist { get; private set;}
|
| | | public int storeTrailerLv { get; private set; }
|
| | |
|
| | | bool isLogin = true;
|
| | |
| | | FuncConfigConfig mallCurrency = Config.Instance.Get<FuncConfigConfig>("MallCurrency");
|
| | | showCoinsUIDict = ConfigParse.GetDic<int, int>(mallCurrency.Numerical1);
|
| | | FuncConfigConfig mallPush = Config.Instance.Get<FuncConfigConfig>("MallPush");
|
| | | StoreRedIdlist = ConfigParse.GetMultipleStr<int>(mallPush.Numerical2);
|
| | | storeTrailerLv = int.Parse(mallPush.Numerical1);
|
| | | MainInterfaceWin.IsCopyOfThePanel += OnMoveTopPart;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public void UpdateFreeShopRedpoint()
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
|
| | |
| | | for(int i = 0; i < storeDatas.Count; i++)
|
| | | {
|
| | | var storeConfig = storeDatas[i].storeConfig;
|
| | | if (storeConfig.MoneyNumber == 0)
|
| | | int type = 0;
|
| | | TryGetRedTypeByShopId(storeConfig.ID,out type);
|
| | | if(type == 1)
|
| | | {
|
| | | int remainNum = 0;
|
| | | if (!TryGetIsSellOut(storeConfig, out remainNum))
|
| | |
| | |
|
| | | }
|
| | | }
|
| | | public event Action<int> UpdateHelpPointExchangeEvent;
|
| | | |
| | | public void UpdateCanBuyRedpoint()
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Store)) return;
|
| | |
| | | for (int i = 0; i < storeDatas.Count; i++)
|
| | | {
|
| | | var storeConfig = storeDatas[i].storeConfig;
|
| | | if (StoreRedIdlist.Contains(storeConfig.ID))
|
| | | int type = 0;
|
| | | TryGetRedTypeByShopId(storeConfig.ID, out type);
|
| | | if(type == 4)
|
| | | {
|
| | | int remainNum = 0;
|
| | | if (!TryGetIsSellOut(storeConfig, out remainNum))
|
| | |
| | | if (UIHelper.GetMoneyCnt(storeConfig.MoneyType) >= (ulong)storeConfig.MoneyNumber)
|
| | | {
|
| | | shopRedDict[storeConfig.ID].state = RedPointState.Simple;
|
| | | if (storeConfig.ShopType == (int)StoreFunc.IntegralStore)
|
| | | {
|
| | | if (UpdateHelpPointExchangeEvent != null)
|
| | | {
|
| | | UpdateHelpPointExchangeEvent(storeConfig.ID);
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | for (int i = 0; i < storeDatas.Count; i++)
|
| | | {
|
| | | var storeConfig = storeDatas[i].storeConfig;
|
| | | if (mustIdlist.Contains(storeConfig.ItemID))
|
| | | int type = 0;
|
| | | TryGetRedTypeByShopId(storeConfig.ID, out type);
|
| | | if(type == 2)
|
| | | {
|
| | | if (CheckIsMustBuy(storeConfig))
|
| | | {
|
| | |
| | |
|
| | | public void ClearMustBuyRedpoint(StoreConfig storeConfig)
|
| | | {
|
| | | if(mustIdlist.Contains(storeConfig.ItemID))
|
| | | int type = 0;
|
| | | TryGetRedTypeByShopId(storeConfig.ID,out type);
|
| | | if(type == 2)
|
| | | {
|
| | | shopRedDict[storeConfig.ID].state = RedPointState.None;
|
| | | IsMustBuyDay = false;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public List<int> mustIdlist = new List<int>() { 4741};
|
| | | public bool CheckIsMustBuy(StoreConfig config)
|
| | | {
|
| | | int remainNum = 0;
|
| | |
| | | {
|
| | | var storeData = storelist[i];
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(storeData.storeConfig.ItemID);
|
| | | int type = 0;
|
| | | TryGetRedTypeByShopId(storeData.shopId, out type);
|
| | | if(type == 3)
|
| | | {
|
| | | string key = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID,"ShopId",storeData.shopId);
|
| | | int remainNum = 0;
|
| | | switch(itemConfig.Type)
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
| | | RegisterModel<SocialModel>();
|
| | | RegisterModel<ChatBubbleModel>();
|
| | | RegisterModel<AccumulateRechargeModel>();
|
| | | RegisterModel<FBHelpPointExchageModel>();
|
| | | inited = true;
|
| | | }
|
| | |
|