36 lines
758 B
C#
36 lines
758 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Video;
|
|
|
|
/// <summary>
|
|
/// Small class to hold information about a single learnable (e.g., a word or a letter)
|
|
/// </summary>
|
|
[Serializable]
|
|
public class Learnable
|
|
{
|
|
/// <summary>
|
|
/// Name of the word/letter to learn
|
|
/// </summary>
|
|
public string name;
|
|
|
|
/// <summary>
|
|
/// Sprite of this word/letter
|
|
/// </summary>
|
|
public Sprite image;
|
|
|
|
/// <summary>
|
|
/// Sprite of the hand gesture used for fingerspelling
|
|
/// </summary>
|
|
public Sprite handGuide = null;
|
|
|
|
/// <summary>
|
|
/// Addaptive threshold
|
|
/// </summary>
|
|
public float thresholdPercentage = 0.90f;
|
|
|
|
/// <summary>
|
|
/// Example video clip
|
|
/// </summary>
|
|
public VideoClip clip;
|
|
}
|