20 lines
565 B
C#
20 lines
565 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();
|
|
}
|
|
}
|
|
}
|
|
}
|