29 lines
483 B
C#
29 lines
483 B
C#
using UnityEngine;
|
|
|
|
public class vp_ItemIdentifier : MonoBehaviour
|
|
{
|
|
public vp_ItemType Type;
|
|
|
|
public int ID;
|
|
|
|
protected virtual void OnEnable()
|
|
{
|
|
vp_TargetEventReturn<vp_ItemType>.Register(base.transform, "GetItemType", GetItemType);
|
|
vp_TargetEventReturn<int>.Register(base.transform, "GetItemID", GetItemID);
|
|
}
|
|
|
|
protected virtual void OnDisable()
|
|
{
|
|
}
|
|
|
|
public virtual vp_ItemType GetItemType()
|
|
{
|
|
return Type;
|
|
}
|
|
|
|
public virtual int GetItemID()
|
|
{
|
|
return ID;
|
|
}
|
|
}
|