Class FilterBehavior

Executes all contained behaviors one after another in a sequence, next behaviour in the sequence will not be started until the previous one signal success If any of the contained behaviours fail - the whole sequence fails

Hierarchy (view full)

Constructors

Properties

__children: Behavior[]
__currentBehaviour: Behavior
__currentBehaviourIndex: number
__currentBehaviourState: BehaviorStatus
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

isBehavior: boolean
onFinalized: Signal = ...

Dispatched after finalization is complete

onInitialized: Signal = ...

Dispatched after initialization is complete

typeName: string

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • 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

    Returns void

  • Parameters

    • timeDelta: number

    Returns BehaviorStatus