protected override BTResult OnExecute(ref BTInput _input) { AIInput input = _input as AIInput; if (input != null) { return(input.DoAction(AIActionType.Attack)); } return(base.OnExecute(ref _input)); }
protected override BTResult OnExecute(ref BTInput _input) { AIInput input = _input as AIInput; if (input != null) { return(input.DoAction(AIActionType.Idle)); } return(BTResult.Success); }