| | |
| | | [SerializeField] Toggle toolToggle;
|
| | | [SerializeField] Text soreValueText;
|
| | |
|
| | | List<StoreFunc> storeFuncEnables = new List<StoreFunc>();
|
| | |
|
| | | StoreModel _storeModel;
|
| | | StoreModel m_storeModel
|
| | | {
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | storeFuncEnables.Clear();
|
| | | shoplist = m_storeModel.TryGetStoreDatas(StoreFunc.XBEquipStore);
|
| | | if (shoplist.Count > 0)
|
| | | {
|
| | | storeFuncEnables.Add(StoreFunc.XBEquipStore);
|
| | | }
|
| | | shoplist = m_storeModel.TryGetStoreDatas(StoreFunc.XBRuneStore);
|
| | | if (shoplist.Count > 0)
|
| | | {
|
| | | storeFuncEnables.Add(StoreFunc.XBRuneStore);
|
| | | }
|
| | | shoplist = m_storeModel.TryGetStoreDatas(StoreFunc.XBToolStore);
|
| | | if (shoplist.Count > 0)
|
| | | {
|
| | | storeFuncEnables.Add(StoreFunc.XBToolStore);
|
| | | }
|
| | |
|
| | | equipToggle.gameObject.SetActive(storeFuncEnables.Contains(StoreFunc.XBEquipStore));
|
| | | runeToggle.gameObject.SetActive(storeFuncEnables.Contains(StoreFunc.XBRuneStore));
|
| | | toolToggle.gameObject.SetActive(storeFuncEnables.Contains(StoreFunc.XBToolStore));
|
| | |
|
| | | m_storeModel.RefreshTCBPlayerDataEvent += RefreshXBScore;
|
| | | RefreshXBScore(PlayerDataType.CDBPlayerRefresh_TreasureScore);
|
| | | if (m_storeModel.jumpStoreFuncType != 0
|
| | | && (m_storeModel.jumpStoreFuncType == (int)StoreFunc.XBEquipStore
|
| | | || m_storeModel.jumpStoreFuncType == (int)StoreFunc.XBRuneStore
|
| | | || m_storeModel.jumpStoreFuncType == (int)StoreFunc.XBToolStore))
|
| | | && storeFuncEnables.Contains((StoreFunc)m_storeModel.jumpStoreFuncType))
|
| | | {
|
| | | m_storeModel.storeFuncType = (StoreFunc)m_storeModel.jumpStoreFuncType;
|
| | | m_storeModel.jumpStoreFuncType = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_storeModel.storeFuncType = StoreFunc.XBEquipStore;
|
| | | m_storeModel.storeFuncType = storeFuncEnables[0];
|
| | | }
|
| | | }
|
| | |
|