Integrate minigame and courses
This commit is contained in:
@@ -1,16 +1,35 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
[CreateAssetMenu(fileName="New Course", menuName="course")]
|
||||
[CreateAssetMenu(menuName = "Create new Scriptable/Course")]
|
||||
public class Course : ScriptableObject
|
||||
{
|
||||
public string title;
|
||||
public string description;
|
||||
public Sprite thumbnail;
|
||||
public int progress;
|
||||
[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;
|
||||
}
|
||||
|
||||
public Sprite[] images;
|
||||
public VideoClip[] videos;
|
||||
[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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user