Переглянути джерело

查阅建档跳转层级被叠住问题

huangxiaoyue 1 рік тому
батько
коміт
3614d0b942

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -7,7 +7,7 @@ using System;
 
 namespace GFGGame
 {
-    public class ClothingShopView : BaseView
+    public class ClothingShopView : BaseWindow
     {
         private const int SHOES_Y = 105;
         private const int HEAD_Y = 609;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -8,7 +8,7 @@ using System.Collections;
 
 namespace GFGGame
 {
-    public class ClothingSyntheticView : BaseView
+    public class ClothingSyntheticView : BaseWindow
     {
         private const int HEAD_Y = 942;
         private const int FA_XING_Y = 609;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -5,7 +5,7 @@ using UI.Main;
 using UnityEngine;
 namespace GFGGame
 {
-    public class StoryChapterListView : BaseView
+    public class StoryChapterListView : BaseWindow
     {
         private UI_StoryChapterListUI _ui;
         private int curTab;

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

@@ -8,7 +8,7 @@ using ET;
 
 namespace GFGGame
 {
-    public class StoryChapterView : BaseView
+    public class StoryChapterView : BaseWindow
     {
         private UI_StoryChapterUI _ui;
         private int _chapterID;
@@ -350,7 +350,9 @@ namespace GFGGame
             yield return new WaitForEndOfFrame();
 
             _ui.m_chapter.m_compChapterScroll.target.y =Mathf.Max(1 , _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height);
-            gamey.transform.position = new Vector3(0, indexY, 0);
+
+            if(gamey != null)
+                gamey.transform.position = new Vector3(0, indexY, 0);
         }
 
         private void SetContainerY(object param = null)