Click or drag to resize

SimpleStateMachineTRemoveHandlers Method

Removes a state change event handler.

Namespace:  KSPDev.ProcessingUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public void RemoveHandlers(
	T state,
	SimpleStateMachineTOnChange enterHandler = null,
	SimpleStateMachineTOnChange leaveHandler = null
)
Request Example View Source

Parameters

state
Type: T
The state to delete a handler for.
enterHandler (Optional)
Type: KSPDev.ProcessingUtilsSimpleStateMachineTOnChange
The enter state handler to delete.
leaveHandler (Optional)
Type: KSPDev.ProcessingUtilsSimpleStateMachineTOnChange
The leave state handler to delete.
Remarks
It's safe to call it for a non-existing handler.
See Also