Overview

The harvesting system consists of 2 main parts, the Crop Harvesting, and the Tree Chopping. They share some common logic, mainly on the Player Character Interaction System.

How to use

Player Interaction System

The only thing you have to do on the player side is to add the “CharacterClickInteraction” script to your player character prefab, and assign the proper values to the exposed properties.

Simple use case.

Simple use case.

Growing Plants

image.png

The Growing Plants have different Growth States, each one containing a Mesh Prefab and The time in seconds needed to grow to the next stage. You can have as many stages as you want.

An Instance of a Growing Plant

An Instance of a Growing Plant

You can add the “HarvestingStateMachine” script to an empty object or duplicate and modify the existing “GrowingPlant” prefab.

The only prerequisite is that the meshes you select use either the Polyart Foliage or Prop Shaders. You can find them in “Polyart/Dreamscape/Foliage/Foliage” and “Polyart/Dreamscape/Props” respectively.

Growing Plants Spawner

image.png