diff --git a/Assets/Scripts/Scenes/Ride/Scripts/OnlinePlayerController.cs b/Assets/Scripts/Scenes/Ride/Scripts/OnlinePlayerController.cs index 49ff194a..68d424dd 100644 --- a/Assets/Scripts/Scenes/Ride/Scripts/OnlinePlayerController.cs +++ b/Assets/Scripts/Scenes/Ride/Scripts/OnlinePlayerController.cs @@ -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) {