75 lines
1.2 KiB
Plaintext
75 lines
1.2 KiB
Plaintext
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PHomeInventoryItem : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
protected string m_name;
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return m_name;
|
|
}
|
|
set
|
|
{
|
|
if (m_name != value)
|
|
{
|
|
m_name = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
[SerializeField]
|
|
protected string m_desc;
|
|
public string Desc
|
|
{
|
|
get
|
|
{
|
|
return m_desc;
|
|
}
|
|
set
|
|
{
|
|
if (m_desc != value)
|
|
{
|
|
m_desc = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[SerializeField]
|
|
protected Sprite m_icon;
|
|
public Sprite Icon
|
|
{
|
|
get
|
|
{
|
|
return m_icon;
|
|
}
|
|
set
|
|
{
|
|
if (m_icon != value)
|
|
{
|
|
m_icon = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
protected PHomeInventory m_inventory;
|
|
public PHomeInventory Inventory
|
|
{
|
|
get
|
|
{
|
|
return m_inventory;
|
|
}
|
|
set
|
|
{
|
|
if (m_inventory != value)
|
|
{
|
|
m_inventory = value;
|
|
}
|
|
}
|
|
}
|
|
}
|