坦克界面中坦克栏滑动到中心位置:
content.GetComponent<RectTransform>().anchoredPosition = new Vector2(600, 0);
content.transform.DOLocalMoveX(0, 0.5f).SetDelay(_info.id * 0.1f);
如图:TankDlg.PNG
图2:
滑动坦克UI.PNG
坦克界面中坦克栏滑动到中心位置:
content.GetComponent<RectTransform>().anchoredPosition = new Vector2(600, 0);
content.transform.DOLocalMoveX(0, 0.5f).SetDelay(_info.id * 0.1f);
如图: