Sfoglia il codice sorgente

聊天人物定时器改到1秒

HDY 4 mesi fa
parent
commit
eedbc8bbdf

+ 9 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -71,6 +71,12 @@ namespace GFGGame
                 _sceneObject = null;
             }
 
+            if (_dressUpObj != null)
+            {
+                _dressUpObj.Dispose();
+                _dressUpObj = null;
+            }
+
             if (_animObject != null)
             {
                 PrefabManager.Instance.Restore(_animObject);
@@ -184,7 +190,7 @@ namespace GFGGame
             IsTeaParty = (bool)datas[4];
             _autoPlay = _lastStartAutoPlay;
 
-            //修改需求,所有关卡打开跳过(第一关除外)dd
+            //修改需求,所有关卡打开跳过(第一关除外)
             skipable = true;
             if (MainStoryDataManager.currentLevelCfgId == 100001001 &&
                 !InstanceZonesDataManager.CheckLevelPass(MainStoryDataManager.currentLevelCfgId))
@@ -696,7 +702,7 @@ namespace GFGGame
                         {
                             //表情
                             _dressUpObj.AddOrRemove(headAniCfg.FaceId, true);
-                            Timers.inst.Add(0.01f, 1, OnTimerUpDate, storyDialogCfg);
+                            Timers.inst.Add(1f, 1, OnTimerUpDate, storyDialogCfg);
                         }
                         _ui.m_dialogHead.m_compDressUp.target.visible = true ;
                     }
@@ -1289,6 +1295,7 @@ namespace GFGGame
             renderTexure.Release();
             renderTexure = null;
 
+            Debug.LogError("poopopop");
             // 回收人物
             _dressUpObj?.Dispose();
             _dressUpObj = null;