Browse Source

跳过按钮位置

guodong 1 year ago
parent
commit
384f464fc3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      GameClient/Assets/Game/HotUpdate/UGUI/UICGView.cs

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

@@ -133,6 +133,10 @@ namespace GFGGame
                 videoPlayer.Stop();
                 videoPlayer.Stop();
                 videoPlayer.Play();
                 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()
         public void Hide()