21 lines
491 B
C#
21 lines
491 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "Resource", menuName = "Game Data/Resource")]
|
|
public class ResourceItem : GameItem
|
|
{
|
|
public int weight;
|
|
public int value;
|
|
public int durability;
|
|
public int maxDurability;
|
|
public int quality;
|
|
public int level;
|
|
public int experience;
|
|
|
|
// set type of resource on instantiation
|
|
public ResourceItem()
|
|
{
|
|
type = ItemType.Resource;
|
|
}
|
|
|
|
// Add other resource-specific properties and methods here
|
|
} |