zhaoyang 3 жил өмнө
parent
commit
45c359b8b0

+ 0 - 13
GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

@@ -24,7 +24,6 @@ namespace GFGGame
         private GameObject _gameObject;
         private GoWrapper _wrapper;
 
-        private int sortingOrder;
         public override void Dispose()
         {
             base.Dispose();
@@ -37,7 +36,6 @@ namespace GFGGame
             packageName = UI_GuideUI.PACKAGE_NAME;
             _ui = UI_GuideUI.Create();
             this.viewCom = _ui.target;
-            // this.clickBlankToClose = false;
             this.layer = ConstViewLayer.TOP;
             isfullScreen = true;
             _ui.m_rectFrameTemp.visible = false;
@@ -110,7 +108,6 @@ namespace GFGGame
 
             }
             _ui.m_compTxt.target.y = Math.Min(yTxt, GRoot.inst.height - _ui.m_compTxt.target.height - 3);
-            // _ui.m_rectFrame.target.visible = true;
         }
 
         protected override void OnHide()
@@ -136,9 +133,7 @@ namespace GFGGame
                 _ui.m_mask.m_guideArea.size = new Vector2((int)rect.size.x, (int)rect.size.y);
                 _ui.m_mask.m_guideArea.position = new Vector2((int)rect.position.x, (int)rect.position.y);
 
-                Debug.Log("zoya000:" + _ui.m_mask.m_guideArea.position);
                 _ui.m_comHolder.target.position = _ui.m_mask.m_guideArea.position;
-                Debug.Log("zoya111:" + _ui.m_comHolder.target.position);
                 _ui.m_comHolder.target.size = _ui.m_mask.m_guideArea.size;
                 int padding = 90;
                 bool atBottom = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding + _ui.m_compTxt.target.height + padding > GRoot.inst.height;
@@ -152,8 +147,6 @@ namespace GFGGame
                     {
                         _ui.m_compTxt.target.y = _ui.m_mask.m_guideArea.y + _ui.m_mask.m_guideArea.height + padding;
                     }
-                    Debug.Log("zoya222:" + _ui.m_compTxt.target.y);
-
                 }
                 int targetWidth = 20;
 
@@ -176,10 +169,6 @@ namespace GFGGame
                 }
                 else
                 {
-                    // if (Mathf.Abs(_ui.m_rectFrameTemp.width - _ui.m_rectFrame.target.width) <= targetWidth && Mathf.Abs(_ui.m_rectFrameTemp.height - _ui.m_rectFrame.target.height) <= targetWidth)
-                    // {
-                    //     Timers.inst.Remove(UpdateGuideRect);
-                    // }
                     _ui.m_comHolder.target.visible = true;
                     guideTarget.touchable = true;
 
@@ -188,8 +177,6 @@ namespace GFGGame
         }
         private void OnClickTarget()
         {
-            // if (guideTarget == null) return;
-            // if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             if (guideTarget != null) guideTarget.onClick.Remove(OnClickTarget);
             GuideController.TryCompleteGuideIndex(guideId, guideIndex);
         }