CocktailIngredient 데이터 직렬화
This commit is contained in:
parent
99a8e9b653
commit
17a5a96b53
@ -15,7 +15,6 @@ namespace BlueWater.Items
|
||||
#if UNITY_EDITOR
|
||||
if (!EditorApplication.isPlayingOrWillChangePlaymode)
|
||||
{
|
||||
Debug.Log("실행 중 아님");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user