1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class Information
{
}
 
 
 
 
 
public class ItemInfo : Information
{
    public int count;
    public int maxCount;
    public Sprite image;
    public string name;
    public Action<GameObject> effect = null;
    public bool OverCountFlag
    {
        get { return count >= maxCount; }
    }
    public ItemInfo(int count, int maxCount, Sprite image, string name, Action<GameObject> effect = null)
    {
        this.count = count;
        this.maxCount = maxCount;
        this.image = image;
        this.name = name;
        this.effect = effect;
    }
}
cs