装备系统完结,修复并加入很多
This commit is contained in:
@@ -152,6 +152,29 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
rankConfig = configs[0];
|
||||
}
|
||||
}
|
||||
|
||||
HideLegacyRadarSiblings();
|
||||
}
|
||||
|
||||
private void HideLegacyRadarSiblings()
|
||||
{
|
||||
if (uRaderObj == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Transform host = transform;
|
||||
Transform target = uRaderObj.transform;
|
||||
for (int i = 0; i < host.childCount; i++)
|
||||
{
|
||||
Transform child = host.GetChild(i);
|
||||
if (child == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
child.gameObject.SetActive(child == target);
|
||||
}
|
||||
}
|
||||
|
||||
private void BindOverlayVisibility()
|
||||
@@ -230,6 +253,8 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
private BehaviourRadarSummary BuildSummary(IReadOnlyList<RecentPlayRecord> records)
|
||||
{
|
||||
BehaviourRadarSummary summary = BuildEmptySummary();
|
||||
summary.rks = PlayerRksService.GetNormalizedOverallRks100();
|
||||
|
||||
if (records == null || records.Count == 0)
|
||||
{
|
||||
return summary;
|
||||
@@ -245,7 +270,6 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
summary.chart = ComputeChartScore(samples);
|
||||
summary.formation = ComputeFormationScore(samples);
|
||||
summary.acc = ComputeAccuracyScore(samples);
|
||||
summary.rks = ComputeRksScore(samples);
|
||||
summary.rating = ComputeRatingScore(samples);
|
||||
return summary;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user