¡¡¥¢¥¤¥³¥ó¤Ê¤É¤Î²èÁü¥Ç¡¼¥¿¤ò¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¤·¤Æ´ÉÍý¤¹¤ë¤¿¤á¤Î¥¹¥¯¥ê¥×¥¿¥Ö¥ë¡¦¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤ÆÍøÍѤ·¤Þ¤¹¡£
¥¯¥é¥¹¤â»Ò¥¯¥é¥¹¤È¤·¤ÆºîÀ®¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¥Õ¥¡¥¤¥ë¤òʬ¤±¤Æ¤âÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¡¡¤³¤Á¤é¤Ï¥µ¥ó¥×¥ë¤Ç¤¹¤Î¤Ç¡¢¥²¡¼¥à¤ÎÆâÍƤ˱þ¤¸¤Æºî¤êÊѤ¨¤ÆÍøÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
IconDataSO.cs
<= ¥¯¥ê¥Ã¥¯¤¹¤ë¤È³«¤¤Þ¤¹¡£
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "IconDataSO", menuName = "Create IconDataSO")]
public class IconDataSO : ScriptableObject
{
public List<EventIconData> eventIconDataList = new();
public List<CardIconData> cardIconDataList = new();
public List<StateIconData> stateIconDataList = new();
public List<ItemIconData> itemIconDataList = new();
public List<GemSpriteData> gemSpriteDataList = new();
[System.Serializable]
public class EventIconData
{
public EventIconType iconType;
public Sprite iconSprite;
}
[System.Serializable]
public class CardIconData
{
public int iconId;
public Sprite iconSprite;
}
[System.Serializable]
public class StateIconData
{
public int iconId;
public Sprite iconSprite;
}
[System.Serializable]
public class ItemIconData
{
public int iconId;
public Sprite iconSprite;
}
[System.Serializable]
public class GemSpriteData
{
public GemType gemType;
public Sprite gemSprite;
}
}
¥³¥á¥ó¥È¤ò¤«¤¯