35 lines
934 B
C#
35 lines
934 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Video;
|
|
|
|
[CreateAssetMenu(menuName = "Create new Scriptable/Course")]
|
|
public class Course : ScriptableObject
|
|
{
|
|
[Serializable]
|
|
// Small class to hold information about a single learnable (e.g., a word or a letter)
|
|
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;
|
|
}
|
|
|
|
[Header("Course info")]
|
|
// Course index
|
|
public CourseIndex index;
|
|
// Course title
|
|
public string title;
|
|
// Short desciption of the course
|
|
public string description;
|
|
// Thumbnail of the course
|
|
public Sprite thumbnail;
|
|
|
|
[Header("Learnable words")]
|
|
// List of learnable words/letters
|
|
public List<Learnable> learnables = new List<Learnable>();
|
|
}
|