Resolve WES-XX-ScriptableList-Index-Fix

This commit is contained in:
Jerome Coudron
2023-03-25 17:16:41 +00:00
committed by Dries Van Schuylenbergh
parent 8696aff135
commit 4402e80d0c
8 changed files with 44 additions and 2 deletions

View File

@@ -5178,6 +5178,7 @@ MonoBehaviour:
feedBack: {fileID: 128049076}
scoreDisplay: {fileID: 1627575593}
minigame: {fileID: 11400000, guid: e726e0b93ea88465db7ee27605deb83f, type: 2}
minigamelist: {fileID: 11400000, guid: 51453f9b41bc72f468ba3e67ab622f8f, type: 2}
songList: {fileID: 11400000, guid: 4f0ce70309bb901feb28199a82a7d195, type: 2}
hitZone: {fileID: 2012531007}
symbolPrefab: {fileID: 4639383499500021565, guid: f3117b0203a1342a48a95904347b03c8, type: 3}

View File

@@ -41,6 +41,12 @@ public class JustSignController : MonoBehaviour
public Minigame minigame;
/// <summary>
/// We keep the minigamelist as well so that the minigame-index doesn't get reset
/// DO NOT REMOVE
/// </summary>
public MinigameList minigamelist;
/// </summary>
/// Reference to the list of available songs
/// </summary>
public SongList songList;
@@ -50,6 +56,7 @@ public class JustSignController : MonoBehaviour
/// </summary>
private Song currentSong;
/// <summary>
/// The zone that the player should be hitting with his or her inputs
/// </summary>
@@ -174,7 +181,7 @@ public class JustSignController : MonoBehaviour
/// Start is called before the first frame update
/// </summary>
void Start()
{
{
scoreDisplay.text = "Score: " + score.ToString();
currentTheme = minigame.themeList.themes[minigame.themeList.currentThemeIndex];
words.AddRange(currentTheme.learnables);