Pārlūkot izejas kodu

修复剧情对话bug和套装部件显示效果

guodong 3 gadi atpakaļ
vecāks
revīzija
bf3c8e381c

+ 12 - 4
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -94,16 +94,24 @@ namespace GFGGame
             {
             {
                 void UpdateDialogPicAlpha(object param)
                 void UpdateDialogPicAlpha(object param)
                 {
                 {
-                    Color c = spr.color;
-                    if (spr.enabled && c.a < 1f)
+                    if(spr != null)
                     {
                     {
-                        c.a += 0.05f;
-                        spr.color = c;
+                        Color c = spr.color;
+                        if (spr.enabled && c.a < 1f)
+                        {
+                            c.a += 0.05f;
+                            spr.color = c;
+                        }
+                        else
+                        {
+                            FairyGUI.Timers.inst.Remove(UpdateDialogPicAlpha);
+                        }
                     }
                     }
                     else
                     else
                     {
                     {
                         FairyGUI.Timers.inst.Remove(UpdateDialogPicAlpha);
                         FairyGUI.Timers.inst.Remove(UpdateDialogPicAlpha);
                     }
                     }
+                    
                 }
                 }
                 var resPath = ResPathUtil.GetNpcPicSPath(value);
                 var resPath = ResPathUtil.GetNpcPicSPath(value);
                 Sprite sp = GFGAsset.Load<Sprite>(resPath);
                 Sprite sp = GFGAsset.Load<Sprite>(resPath);

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GetSuitItemController.cs

@@ -18,6 +18,10 @@ namespace GFGGame
 
 
         public static int TryShow(int itemId)
         public static int TryShow(int itemId)
         {
         {
+            if(ViewManager.isViewOpen(ViewName.GET_SUIT_ITEM_VIEW))
+            {
+                return 0;
+            }
             if(itemId < 0)
             if(itemId < 0)
             {
             {
                 int index = _waitingToShowList.IndexOf(itemId); 
                 int index = _waitingToShowList.IndexOf(itemId);