解决海图索引超过2000头像不显示问题

This commit is contained in:
lishuo committed 2021-11-24 16:40:53 +08:00
1 parent 70a8bc0000
commit a2ff7604cc
2 files changed
+28 -8

No files matched your search

@@ -159,14 +159,17 @@ namespace Assets.Scenes.Ride.Scripts
}
public int GetViewIndex(int index)
{
foreach (var item in pointMap)
{
if (item.Key.Contains(index))
{
return item.Value;
}
}
return index;
if (graph == null)
return index;
return graph.DataSource.GetViewIndex(index, Category);
//foreach (var item in pointMap)
//{
// if (item.Key.Contains(index))
// {
// return item.Value;
// }
//}
//return index;
}
private IDictionary<IList<int>, int> pointMap = new Dictionary<IList<int>, int>();