Resolve WES-97 "Integrate signpredictor in spellingbee"
This commit is contained in:
committed by
Lukas Van Rossem
parent
f827c29d3a
commit
3abc24a39c
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Class for holding all (static) data about a certain course
|
||||
@@ -10,7 +6,7 @@ using UnityEngine.Video;
|
||||
[CreateAssetMenu(menuName = "Create new Scriptable/Course")]
|
||||
public class Course : ScriptableObject
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Index of the course
|
||||
/// </summary>
|
||||
|
||||
@@ -27,15 +27,6 @@ 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>
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
{
|
||||
"name": "InterfacesScripts"
|
||||
}
|
||||
"name": "InterfacesScripts",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:5c2b5ba89f9e74e418232e154bc5cc7a"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -28,21 +28,12 @@ public class MinigameList : ScriptableObject
|
||||
return minigames.Find((m) => m.index == minigameIndex);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Function to find a minigame-index in the list based on its title
|
||||
/// </summary>
|
||||
/// <param name="title"></param>
|
||||
public void SetCurrentMinigame(string title)
|
||||
{
|
||||
this.currentMinigameIndex = minigames.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 SetCurrentMinigame(MinigameIndex index)
|
||||
{
|
||||
this.currentMinigameIndex = minigames.FindIndex((mi) => mi.index == index);
|
||||
currentMinigameIndex = minigames.FindIndex((mi) => mi.index == index);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.Barracuda;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
@@ -23,6 +23,11 @@ public class Theme : ScriptableObject
|
||||
/// </summary>
|
||||
public ThemeIndex index;
|
||||
|
||||
/// <summary>
|
||||
/// Reference to the model used in the SignPredictor
|
||||
/// </summary>
|
||||
public NNModel model;
|
||||
|
||||
/// <summary>
|
||||
/// List of all learnable words/letters
|
||||
/// </summary>
|
||||
|
||||
@@ -4,21 +4,21 @@
|
||||
/// </summary>
|
||||
public enum ThemeIndex
|
||||
{
|
||||
ALPHABET,
|
||||
CLOTHING,
|
||||
ANIMALS,
|
||||
FOOD,
|
||||
HOBBIES,
|
||||
HOUSE,
|
||||
FAMILY,
|
||||
SPELLINGGEOGRAPY,
|
||||
SPELLINGBUILDINGS,
|
||||
SPELLINGSPORTS,
|
||||
SPELLINGBASICS,
|
||||
SPELLINGHOBBIES,
|
||||
SPELLINGPEOPLE,
|
||||
SPELLINGFRUIT,
|
||||
SPELLINGVEGGIES,
|
||||
SPELLINGWILD,
|
||||
SPELLINGFARM
|
||||
SIGN_ALPHABET,
|
||||
SIGN_CLOTHING,
|
||||
SIGN_ANIMALS,
|
||||
SIGN_FOOD,
|
||||
SIGN_HOBBIES,
|
||||
SIGN_HOUSE,
|
||||
SIGN_FAMILY,
|
||||
SPELLING_GEOGRAPY,
|
||||
SPELLING_BUILDINGS,
|
||||
SPELLING_SPORTS,
|
||||
SPELLING_BASICS,
|
||||
SPELLING_HOBBIES,
|
||||
SPELLING_PEOPLE,
|
||||
SPELLING_FRUIT,
|
||||
SPELLING_VEGGIES,
|
||||
SPELLING_WILD,
|
||||
SPELLING_FARM
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -19,15 +18,6 @@ public class ThemeList : ScriptableObject
|
||||
/// </summary>
|
||||
public List<Theme> themes = new List<Theme>();
|
||||
|
||||
/// <summary>
|
||||
/// Function to find a theme-index in the list based on its title
|
||||
/// </summary>
|
||||
/// <param name="title"></param>
|
||||
public void SetCurrentTheme(string title)
|
||||
{
|
||||
this.currentThemeIndex = themes.FindIndex((mi) => mi.title == title);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Function to find a theme-index in the list based on its index
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user