2024-09-09 09:50:37 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
2025-02-03 10:03:41 +00:00
|
|
|
namespace DDD.ScriptableObjects
|
2024-09-09 09:50:37 +00:00
|
|
|
{
|
2025-02-10 02:13:46 +00:00
|
|
|
[CreateAssetMenu(fileName = "CraftRecipeTable", menuName = "ScriptableObjects/CraftRecipeTable")]
|
2025-02-03 10:03:41 +00:00
|
|
|
public class CraftRecipeDataSo : DataSo<CraftRecipeData>
|
2024-09-09 09:50:37 +00:00
|
|
|
{
|
2025-02-10 02:13:46 +00:00
|
|
|
protected override void OnEnable()
|
|
|
|
{
|
|
|
|
base.OnEnable();
|
|
|
|
|
|
|
|
foreach (var element in _datas.Values)
|
|
|
|
{
|
|
|
|
element.ValidIngredients = element.GetValidIngredients();
|
|
|
|
element.CraftingToolQueue = element.GetCraftingToolQueue();
|
2025-02-17 21:47:56 +00:00
|
|
|
element.ValidHashTags = element.GetValidHashTags();
|
2025-02-10 02:13:46 +00:00
|
|
|
}
|
|
|
|
}
|
2024-09-09 09:50:37 +00:00
|
|
|
}
|
2025-02-03 10:03:41 +00:00
|
|
|
}
|