using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; /// /// Class for holding all (static) data about a certain course /// [CreateAssetMenu(menuName = "Create new Scriptable/Course")] public class Course : ScriptableObject { /// /// Small class to hold information about a single learnable (e.g., a word or a letter) /// [Serializable] public class Learnable { /// /// Name of the word/letter to learn /// public string name; /// /// Sprite of this word/letter /// public Sprite image; /// /// Example video clip /// public VideoClip clip; } /// /// Index of the course /// public CourseIndex index; /// /// The course title /// public string title; /// /// A short description of the course /// public string description; /// /// Reference to the course thumbnail /// public Sprite thumbnail; /// /// List of all learnable words/letters /// public List learnables = new List(); }