Fix CourseProgressCard prefab missing script reference
This commit is contained in:
committed by
Louis Adriaens
parent
0e997666e2
commit
db37a16155
@@ -337,7 +337,7 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 5101881939626277738}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c7f1ef892112fd243929d40c896c9b7b, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 9d74ca3d18cdd2a45b0b3cebb9ce098d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
button: {fileID: -2577348215772602702}
|
||||
|
||||
@@ -211,8 +211,16 @@ public class UserProgressScreen : MonoBehaviour
|
||||
private void DisplayMinigameGraph(MinigameIndex minigameIndex)
|
||||
{
|
||||
Progress progress = user.GetMinigameProgress(minigameIndex);
|
||||
List<Score> scores = progress.Get<List<Score>>("latestScores");
|
||||
PlotGraph(scores.ConvertAll<double>((s) => (double)s.scoreValue), progress.Get<List<Score>>("highestScores")[0].scoreValue);
|
||||
List<Score> latestScores = progress.Get<List<Score>>("latestScores");
|
||||
List<Score> highestScores = progress.Get<List<Score>>("highestScores");
|
||||
if (0 < highestScores.Count)
|
||||
{
|
||||
PlotGraph(latestScores.ConvertAll<double>((s) => (double)s.scoreValue), highestScores[0].scoreValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
progressGraph.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b78a998f611664947a7e5edb192dd6ff
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user