guodong 1 жил өмнө
parent
commit
384f464fc3

+ 4 - 0
GameClient/Assets/Game/HotUpdate/UGUI/UICGView.cs

@@ -133,6 +133,10 @@ namespace GFGGame
                 videoPlayer.Stop();
                 videoPlayer.Play();
             }
+            RectTransform rectBtnSkipVertical = BtnSkipHorizontal.GetComponent<RectTransform>();
+            Vector2 anchoredPosition = rectBtnSkipVertical.anchoredPosition;
+            anchoredPosition.y = (Screen.height - imgVideoSizeDelta.x)/2 + rectBtnSkipVertical.sizeDelta.x/2;
+            rectBtnSkipVertical.anchoredPosition = anchoredPosition;
         }
 
         public void Hide()