2022-03-28 07:08:54 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
public class ItemData : MonoBehaviour
|
|
|
|
{
|
|
|
|
public int itemId;
|
|
|
|
public bool canStack;
|
|
|
|
public string itemName;
|
|
|
|
public string itemDescription;
|
2022-04-11 15:56:51 +00:00
|
|
|
public GameObject prefab;
|
2022-03-28 07:08:54 +00:00
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return $"{base.ToString()}, itemId: {itemId}, canStack: {canStack}, itemName: {itemName}";
|
|
|
|
}
|
|
|
|
}
|