ControllableComponent¶
Abstract MonoBehaviour that routes begin/end triggers to subclass-defined actions via a pluggable execution frame.
Namespace: Jungle.Processes
Inherits: MonoBehaviour
Implements: ICycleProvider<MonoCycle>
Overview¶
ControllableComponent provides a frame-driven lifecycle for MonoBehaviours. Each instance has an execution frame (IExecutionFrame) that decides when OnBegin() and OnEnd() fire. The frame is configured in the Inspector via the class-selection dropdown and can be a MonoBehaviour phase pair, a pair of events, a cycle on another component, or purely external (manual Begin()/End() calls).
Properties¶
| Property | Type | Description |
|---|---|---|
| executionFrame | IExecutionFrame |
Decides when Begin and End fire. Default: MonoLifecycleFrame(EnableDisable). |
Execution Frame Implementations¶
| Frame | Description |
|---|---|
MonoLifecycleFrame |
Fires on a MonoBehaviour phase pair (EnableDisable, StartDestroy, or AwakeDestroy) on this component. Default. |
EventPairFrame |
Fires when a begin IEvent triggers; ends when an end IEvent triggers. |
ExternalFrame |
No automatic triggering — only fires via manual Begin()/End() calls from code. |
ComponentCycleFrame<T, K> |
Subscribes to a named cycle on another ICycleProvider component. |
Public API¶
| Method | Description |
|---|---|
Begin() |
Triggers the begin action. |
End() |
Triggers the end action. |