Big script cleanup. Remove the examples from Ropes' external package
This commit is contained in:
32
Assets/Scripts/PuzzleS/PuzzleStepSO.cs
Normal file
32
Assets/Scripts/PuzzleS/PuzzleStepSO.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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>();
|
||||
}
|
||||
Reference in New Issue
Block a user