on State Or Substate
inline fun <I : T> onStateOrSubstate(handler: BehaviourWithFSMStateHandler<I, T>)
Content copied to clipboard
Add NON STRICT handler to list of available in future BehaviourContextWithFSM. Non strict means that for input State will be used KClass.isInstance and any inheritor of kClass will pass this requirement