|
using UnityEngine;
|
|
|
|
// Example: GameItem.cs
|
|
|
|
[CreateAssetMenu(fileName = "CropItem", menuName = "Game Data/Crop")]
|
|
public class CropItem : GameItem
|
|
{
|
|
public int experience;
|
|
|
|
// set the type of crop on instantiation
|
|
public CropItem()
|
|
{
|
|
type = ItemType.Crop;
|
|
}
|
|
} |