Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/Michsky/UI/Heat/AchievementLibrary.cs
2026-03-04 09:37:33 +08:00

65 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace Michsky.UI.Heat
{
[CreateAssetMenu(fileName = "New Achievement Library", menuName = "Heat UI/Achievement Library")]
public class AchievementLibrary : ScriptableObject
{
public enum AchievementType
{
Common = 0,
Rare = 1,
Legendary = 2
}
public enum DataBehaviour
{
Default = 0,
Unlocked = 1
}
[Serializable]
public class AchievementItem
{
public string title = "New Achievement";
public Sprite icon;
[TextArea]
public string description;
public AchievementType type;
public DataBehaviour dataBehaviour;
[Header("Hidden")]
public bool isHidden;
public string hiddenTitle = "Hidden Achievement";
public Sprite hiddenIcon;
[TextArea]
public string hiddenDescription = "This is a hidden achievement and must be unlocked to preview.";
[Header("Localization")]
[Tooltip("If you're not using localization, you can leave this field blank.")]
public string titleKey;
[Tooltip("If you're not using localization, you can leave this field blank.")]
public string decriptionKey;
[Tooltip("If you're not using localization, you can leave this field blank.")]
public string hiddenTitleKey = "AchievementHiddenTitle";
[Tooltip("If you're not using localization, you can leave this field blank.")]
public string hiddenDescKey = "AchievementHiddenDesc";
}
[Space(10f)]
public List<AchievementItem> achievements = new List<AchievementItem>();
}
}