Creates the component.
Optionalconfig: BehaviorsConfig
The component's configuration. Fields marked with DefineField take their values from
config, or its decorated fields keep their initial values.
OptionalactorThe actor that has this component. It is undefined until the component is
added to an actor.
The behaviors of the actor. BehaviorSystem reads the list once, when
it creates the behavior instances. To change the behaviors, replace the whole
component with actor.setComponent.
Lists the behaviors of an actor. BehaviorSystem creates an instance of each.
See
Behaviors