resipies_so.cs 464 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. [CreateAssetMenu(fileName = "Recipe", menuName = "ScriptableObjects/Recipe", order = 1)]
  6. public class resipies_so : ScriptableObject
  7. {
  8. public string name;
  9. public string description;
  10. public item output;
  11. public List<RecipeIngredientEntry> ingredients;
  12. }
  13. [Serializable]
  14. public class RecipeIngredientEntry{
  15. public item item;
  16. public int count = 1;
  17. }