浏览代码

跳过按钮位置

guodong 1 年之前
父节点
当前提交
384f464fc3
共有 1 个文件被更改,包括 4 次插入0 次删除
  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()