30 lines
514 B
C#
30 lines
514 B
C#
using UnityEngine;
|
|
|
|
namespace Components
|
|
{
|
|
public class CropComponent : MonoBehaviour
|
|
{
|
|
// Crop properties
|
|
public Crop crop;
|
|
|
|
// Crop state
|
|
public int currentGrowthStage;
|
|
public int isWatered;
|
|
|
|
// Crop methods
|
|
public void Grow()
|
|
{
|
|
// Grow the crop
|
|
}
|
|
|
|
public void Harvest()
|
|
{
|
|
// Harvest the crop
|
|
}
|
|
|
|
public void Water()
|
|
{
|
|
// Water the crop
|
|
}
|
|
}
|
|
} |