Resolve WES-95 "User progress"
This commit is contained in:
43
Assets/Common/Interfaces/Minigame.cs
Normal file
43
Assets/Common/Interfaces/Minigame.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// Class for holding all (static) data about a certain minigame
|
||||
/// </summary>
|
||||
[CreateAssetMenu(menuName = "Create new Scriptable/Minigame")]
|
||||
public class Minigame : ScriptableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Index of the minigame
|
||||
/// </summary>
|
||||
public MinigameIndex index;
|
||||
|
||||
/// <summary>
|
||||
/// The minigame title
|
||||
/// </summary>
|
||||
public string title;
|
||||
|
||||
/// <summary>
|
||||
/// A short description of the minigame
|
||||
/// </summary>
|
||||
public string description;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the game needs a theme to be selected
|
||||
/// </summary>
|
||||
public bool needsTheme;
|
||||
|
||||
/// <summary>
|
||||
/// Reference to the minigame thumbnail
|
||||
/// </summary>
|
||||
public Sprite thumbnail;
|
||||
|
||||
/// <summary>
|
||||
/// The path to the minigame starting scene (<c>path == $"Assets/{minigameEntryPoint}"</c>)
|
||||
/// </summary>
|
||||
public string minigameEntryPoint;
|
||||
|
||||
/// <summary>
|
||||
/// An explanation on how to play the game and score points
|
||||
/// </summary>
|
||||
public string controls;
|
||||
}
|
||||
Reference in New Issue
Block a user