在线人海拔图位置超出边界隐藏

This commit is contained in:
lishuo 2022-01-12 18:27:00 +08:00
parent 02111a57b1
commit dc4cf87bc4

View File

@ -282,7 +282,7 @@ namespace Assets.Scenes.Ride.Scripts
//超出边界隐藏
var start = graph.HorizontalScrolling;
var end = graph.HorizontalScrolling + graph.DataSource.HorizontalViewSize;
headPanel.SetActive( viewIndex >= start && viewIndex <= end);
headPanel.SetActive(nextIndex >= start && nextIndex <= end);
//显示头像
if (head == null)
{