瀏覽代碼

主线关卡刷新完成前不可点击

zhaoyang 3 年之前
父節點
當前提交
89a2e81b6c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -64,6 +64,7 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
+            _ui.target.touchable = false;
             MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
             _chapterID = (int)viewData;
             MainStoryDataManager.currentChapterCfgId = _chapterID;
@@ -73,6 +74,7 @@ namespace GFGGame
             _ui.m_chapter.AddChild(_compChapter);
             InitChapter();
             _valueBarController.OnShown();
+            _ui.target.touchable = true;
 
         }