Quellcode durchsuchen

跳过按钮位置

guodong vor 1 Jahr
Ursprung
Commit
384f464fc3
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  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.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()