public BehaviorReturnCode Behave(TreeContext context) { context.OnAboutToCall(this); this.ReturnCode = this.OnBehave(context); context.OnCalled(this, this.ReturnCode); return(this.ReturnCode); }