private bool decomposeComplex(BehaviorNode node, PlannerTaskComplex seqTask, int depth) { try { int depth1 = this.agent.Variables.Depth; bool bOk = false; bOk = node.decompose(node, seqTask, depth, this); Debug.Check(this.agent.Variables.Depth == depth1); return(bOk); } catch (Exception ex) { Debug.Check(false, ex.Message); } return(false); }
private bool decomposeComplex(BehaviorNode node, PlannerTaskComplex seqTask, int depth) { try { int depth1 = this.agent.Variables.Depth; bool bOk = false; bOk = node.decompose(node, seqTask, depth, this); Debug.Check(this.agent.Variables.Depth == depth1); return bOk; } catch (Exception ex) { Debug.Check(false, ex.Message); } return false; }