Files
AppleHillsProduction/Assets/Scripts/Levels/LevelSwitchData.cs
2025-10-29 14:37:11 +01:00

43 lines
1.2 KiB
C#

using UnityEngine;
namespace Levels
{
/// <summary>
/// ScriptableObject holding data for a level switch (scene name, description, icon).
/// </summary>
[CreateAssetMenu(fileName = "LevelSwitchData", menuName = "AppleHills/Items & Puzzles/Level Switch Data")]
public class LevelSwitchData : ScriptableObject
{
/// <summary>
/// The name of the target scene to switch to.
/// </summary>
public string targetLevelSceneName;
/// <summary>
/// The name of the minigame scene to switch to.
/// </summary>
public string targetMinigameSceneName;
/// <summary>
/// Description of the level switch.
/// </summary>
[TextArea]
public string description;
/// <summary>
/// Icon to display for this level switch.
/// </summary>
public Sprite mapSprite;
/// <summary>
/// Icon to display in UI for this level switch.
/// </summary>
public Sprite menuSprite;
/// <summary>
/// Icon to display for minigame selection, attached to this level.
/// </summary>
public Sprite minigameMenuSprite;
}
}