Workable

This component lets your prefab be mined, hammered, chopped, dug….

Component Workable Fields

TypeNameDescription
tuning value (ACTIONS.[act])actionwhat action is required
numberworklefthow often it needs to be worked
functiononwork, onfinishFires at those events.
booleansavestatefor when it's important to remember the state

Component Workable Methods

NameParameterReturnsDescription
Destroydestroyernilfor basehassler and such
SetWorkLeftworknilManually change the state.

Example