Fishable

This component makes your prefab a pond of sorts, for use with fishing rods. Notice that the fishing animation needs to be done too.

Component Fishable Fields

TypeNameDescription
tablefishthe things that can be gathered
numbermaxfishhow much fish is in the pond
numberfishleftDon't overfish!
tablehookedfish
booleanfrozenYou can lock the pond.

Component Fishable Methods

NameParameterReturnsDescription
AddFishprefabnilsame as inst.components.fishable.fish[prefab] = prefab
HookFishnilfishmakes the fisher catch a fish
ReleaseFishfishnilmakes the fish get away
RemoveFishfishnilgive the fish to the player
GetFishPercentnilnumber (percent)how populated the pond is in percent

Example