Resolve WES-80 "Data"
This commit is contained in:
@@ -26,4 +26,22 @@ public class CourseList : ScriptableObject
|
||||
{
|
||||
return courses.Find((c) => c.index == courseIndex);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Function to find a minigame-index in the list based on its title
|
||||
/// </summary>
|
||||
/// <param name="title"></param>
|
||||
public void SetCurrentCourse(string title)
|
||||
{
|
||||
this.currentCourseIndex = courses.FindIndex((mi) => mi.title == title);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Function to find a minigame-index in the list based on its index
|
||||
/// </summary>
|
||||
/// <param name="title"></param>
|
||||
public void SetCurrentCourse(CourseIndex index)
|
||||
{
|
||||
this.currentCourseIndex = courses.FindIndex((mi) => mi.index == index);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user