Table of Contents

Method FindNearest

Namespace
GrindFest
Assembly
GrindFest.dll

FindNearest(Vector3, FarmState, float)

Finds the nearest CropContainerBehaviour in the given state within maxDistance. Searches all containers in the active scene — tilled farm plots, pots, planters, etc.

public static CropContainerBehaviour FindNearest(Vector3 from, FarmState state, float maxDistance = 10)

Parameters

from Vector3
state FarmState
maxDistance float

Returns

CropContainerBehaviour