Integrate minigame and courses

This commit is contained in:
Dries Van Schuylenbergh
2023-03-08 19:07:57 +00:00
parent 7e98fea538
commit 852a17b0b4
56 changed files with 1431 additions and 1300 deletions

View File

@@ -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>();
}