CocktailIngredient 데이터 직렬화

This commit is contained in:
NTG_Lenovo 2024-10-24 14:03:18 +09:00
parent 99a8e9b653
commit 17a5a96b53
2 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,6 @@ namespace BlueWater.Items
#if UNITY_EDITOR
if (!EditorApplication.isPlayingOrWillChangePlaymode)
{
Debug.Log("실행 중 아님");
return;
}
#endif

View File

@ -1,12 +1,18 @@
using System;
using UnityEngine;
namespace BlueWater.Items
{
[Serializable]
public class CocktailIngredient
{
[field: SerializeField]
public string Idx { get; set; }
[field: SerializeField]
public int Ratio { get; set; }
[field: SerializeField]
public int Amount { get; set; }
public CocktailIngredient(string idx, int amount)