Class ParallelBehavior

Executes all contained behaviors in parallel

Hierarchy (view full)

Constructors

Properties

__children: Behavior[]
activeSet: any
context: BehaviorContext = null

Any internal state used by the behavior This provides a way to interact with the outside as well as to pass data between themselves

failureCount: number
failurePolicy: ParallelBehaviorPolicy
isBehavior: boolean
onFinalized: Signal = ...

Dispatched after finalization is complete

onInitialized: Signal = ...

Dispatched after initialization is complete

successCount: number
successPolicy: ParallelBehaviorPolicy
typeName: string

Methods

  • Called when behavior is finished, or interrupted Used to clean up any resources You can think of it as "stop"

    Returns void

  • Called before behavior gets executed via tick for the first time Used to prepare the behavior for execution You can think of it as "start"

    Parameters

    • context: any

    Returns void