CapersProject/Assets/02.Scripts/DDD/ScriptableObject/Class/CraftRecipeDataSo.cs
2025-02-18 06:47:56 +09:00

21 lines
633 B
C#

using UnityEngine;
namespace DDD.ScriptableObjects
{
[CreateAssetMenu(fileName = "CraftRecipeTable", menuName = "ScriptableObjects/CraftRecipeTable")]
public class CraftRecipeDataSo : DataSo<CraftRecipeData>
{
protected override void OnEnable()
{
base.OnEnable();
foreach (var element in _datas.Values)
{
element.ValidIngredients = element.GetValidIngredients();
element.CraftingToolQueue = element.GetCraftingToolQueue();
element.ValidHashTags = element.GetValidHashTags();
}
}
}
}