New answers tagged

2

You do already return a reference to the behaviour with the getBehaviour method. You can store the reference in a variable and work with it. Personally, I wouldn't return the components from the other methods. Something like the following if a local variable is enough: YourBehaviour behaviour = actor.getBehaviour(BehaviourType); behaviour.method(); ...



Top 50 recent answers are included