少年修仙传客户端代码仓库
client_linchunjie
2019-04-24 2bd36f3881b9b691c35753f8192fc1ebbcc90a98
3335 聚魂Tips逻辑修改
2个文件已修改
52 ■■■■■ 已修改文件
System/GatheringSoul/GatherSoulHoleBehaviour.cs 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulItemBehaviour.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulHoleBehaviour.cs
@@ -130,42 +130,6 @@
            m_ContaienrRedpoint.gameObject.SetActive(requireRedpoint);
        }
        private void OnTipFunc(ItemOperateType funcType, string arg2)
        {
            switch (funcType)
            {
                case ItemOperateType.compose:
                    {
                        GatherSoulItem item;
                        if (model.TryGetItem(hole, out item))
                        {
                            model.HandleSoulTipFunc(funcType, item);
                        }
                    }
                    break;
                case ItemOperateType.putOff:
                    {
                        WindowCenter.Instance.Close<GatherSoulTipWin>();
                        GatherSoulItem item;
                        if (model.TryGetItem(hole, out item))
                        {
                            model.ExecutePutOffSoul(item);
                        }
                    }
                    break;
                case ItemOperateType.LevelUp:
                    WindowCenter.Instance.Close<GatherSoulTipWin>();
                    GatherSoulLevelUpWin.selectHole = hole;
                    WindowCenter.Instance.Open<GatherSoulLevelUpWin>();
                    break;
                case ItemOperateType.Replace:
                    WindowCenter.Instance.Close<GatherSoulTipWin>();
                    GatherSoulEquipListWin.selectHole = hole;
                    WindowCenter.Instance.Open<GatherSoulEquipListWin>();
                    break;
            }
        }
        private void GatherSoulHoleRefresh(int hole)
        {
            if (this.hole == hole)
System/GatheringSoul/GatherSoulItemBehaviour.cs
@@ -224,22 +224,6 @@
                }
            }
        }
        private void OnTipFunc(ItemOperateType type, string arg2)
        {
            if (displayItem.Equals(default(VirtualItem)))
            {
                WindowCenter.Instance.Close<GatherSoulTipWin>();
                return;
            }
            GatherSoulItem item;
            if (!model.TryGetItem(displayItem.packType, displayItem.index, out item))
            {
                WindowCenter.Instance.Close<GatherSoulTipWin>();
                return;
            }
            soulModel.HandleSoulTipFunc(type, item);
        }
    }
}