From 6d101512ba4cb8e37a98ace6320a0b70c96efa2b Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 17 四月 2019 10:34:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/ItemTip/TipModelWidget.cs |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/System/ItemTip/TipModelWidget.cs b/System/ItemTip/TipModelWidget.cs
index 8fa39d8..69d67f5 100644
--- a/System/ItemTip/TipModelWidget.cs
+++ b/System/ItemTip/TipModelWidget.cs
@@ -13,7 +13,6 @@
     public class TipModelWidget : MonoBehaviour
     {
 
-        [SerializeField] Text m_Title;
         [SerializeField] RawImage m_Model;
         [SerializeField] Text m_FightPower;
         [SerializeField] Image m_Fight;
@@ -22,36 +21,35 @@
         FashionDressModel fashionDressModel { get { return ModelCenter.Instance.GetModel<FashionDressModel>(); } }
         ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
 
-        public void OnDisable()
+        void OnDisable()
         {
             switch (showType)
             {
-                case ModelShowType.treasure:
-                    UI3DTreasureExhibition.Instance.StopShow();
+                case ModelShowType.Treasure:
+                    UI3DTreasureExhibition.Instance.Stop();
                     break;
-                case ModelShowType.mount:
+                case ModelShowType.Mount:
                     break;
-                case ModelShowType.pet:
+                case ModelShowType.Pet:
                     break;
             }
         }
 
-        public void Display(int id, ModelShowType showType, string title, int fightValue = 0)
+        public void Display(int id, ModelShowType showType, int fightValue = 0)
         {
-            m_Title.text = title;
             this.showType = showType;
 
             switch (showType)
             {
-                case ModelShowType.treasure:
+                case ModelShowType.Treasure:
                     m_Fight.SetSprite("FightingLv_Normal");
-                    UI3DTreasureExhibition.Instance.BeginShowTreasure(id, m_Model);
+                    UI3DTreasureExhibition.Instance.ShowTreasure(id, m_Model);
                     break;
-                case ModelShowType.mount:
+                case ModelShowType.Mount:
                     m_Fight.SetSprite("FightingLv_Max");
                     UI3DModelExhibition.Instance.ShowHourse(id, m_Model);
                     break;
-                case ModelShowType.pet:
+                case ModelShowType.Pet:
                     m_Fight.SetSprite("FightingLv_Max");
                     var npcConfig = NPCConfig.Get(id);
                     UI3DModelExhibition.Instance.ShowNPC(id, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_Model);
@@ -61,9 +59,9 @@
                     var itemConfig = ItemConfig.Get(id);
                     if (itemConfig != null)
                     {
-                        int fashionType = 0;
-                        int fashionId = 0;
-                        bool isFashion = tipsModel.TryGetItemFashionData(itemConfig.ID, out fashionType, out fashionId);
+                        var fashionType = 0;
+                        var fashionId = 0;
+                        var isFashion = tipsModel.TryGetItemFashionData(itemConfig.ID, out fashionType, out fashionId);
                         if (isFashion)
                         {
                             List<int> fashionIds = null;
@@ -130,6 +128,7 @@
                 fashionSecondaryId = fashionSecondaryId,
                 isDialogue = false,
             };
+
             return data;
         }
 

--
Gitblit v1.8.0