2025-10-28 14:31:17 +01:00
|
|
|
|
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;
|
2025-10-29 09:57:33 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Icon to display for this level switch.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Sprite menuSprite;
|
2025-10-28 14:31:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|