Exemple #1
0
    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));
    }
Exemple #2
0
    protected override BTResult OnExecute(ref BTInput _input)
    {
        AIInput input = _input as AIInput;

        if (input != null)
        {
            return(input.DoAction(AIActionType.Idle));
        }


        return(BTResult.Success);
    }