33 lines
917 B
C#
33 lines
917 B
C#
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// ScriptableObject representing a single puzzle step, its display info, and which steps it unlocks.
|
|
/// </summary>
|
|
[CreateAssetMenu(fileName = "PuzzleStepSO", menuName = "Puzzle/Step")]
|
|
public class PuzzleStepSO : ScriptableObject
|
|
{
|
|
/// <summary>
|
|
/// Unique identifier for this puzzle step.
|
|
/// </summary>
|
|
public string stepId;
|
|
/// <summary>
|
|
/// Display name for this step.
|
|
/// </summary>
|
|
public string displayName;
|
|
/// <summary>
|
|
/// Description of this step.
|
|
/// </summary>
|
|
[TextArea]
|
|
public string description;
|
|
/// <summary>
|
|
/// Icon for this step.
|
|
/// </summary>
|
|
public Sprite icon;
|
|
/// <summary>
|
|
/// List of steps that this step unlocks when completed.
|
|
/// </summary>
|
|
[Header("Unlocks")]
|
|
public List<PuzzleStepSO> unlocks = new List<PuzzleStepSO>();
|
|
}
|