CocktailIngredient 데이터 직렬화
This commit is contained in:
parent
99a8e9b653
commit
17a5a96b53
@ -15,7 +15,6 @@ namespace BlueWater.Items
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
if (!EditorApplication.isPlayingOrWillChangePlaymode)
|
if (!EditorApplication.isPlayingOrWillChangePlaymode)
|
||||||
{
|
{
|
||||||
Debug.Log("실행 중 아님");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace BlueWater.Items
|
namespace BlueWater.Items
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class CocktailIngredient
|
public class CocktailIngredient
|
||||||
{
|
{
|
||||||
|
[field: SerializeField]
|
||||||
public string Idx { get; set; }
|
public string Idx { get; set; }
|
||||||
|
|
||||||
|
[field: SerializeField]
|
||||||
public int Ratio { get; set; }
|
public int Ratio { get; set; }
|
||||||
|
|
||||||
|
[field: SerializeField]
|
||||||
public int Amount { get; set; }
|
public int Amount { get; set; }
|
||||||
|
|
||||||
public CocktailIngredient(string idx, int amount)
|
public CocktailIngredient(string idx, int amount)
|
||||||
|
Loading…
Reference in New Issue
Block a user