Resolve WES-80 "Data"
This commit is contained in:
@@ -3,34 +3,14 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Class for holding all (static) data about a certain course
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "Create new Scriptable/Course")]
|
||||
public class Course : ScriptableObject
|
||||
{
|
||||
/// <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>
|
||||
/// Example video clip
|
||||
/// </summary>
|
||||
public VideoClip clip;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Index of the course
|
||||
/// </summary>
|
||||
@@ -52,7 +32,7 @@ public class Course : ScriptableObject
|
||||
public Sprite thumbnail;
|
||||
|
||||
/// <summary>
|
||||
/// List of all learnable words/letters
|
||||
/// Theme used in this course
|
||||
/// </summary>
|
||||
public List<Learnable> learnables = new List<Learnable>();
|
||||
public Theme theme;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user