public override void onReport(TezBTNode node, Result result) { switch (result) { case Result.Success: m_SuccessCount++; if (m_SuccessCount == this.childrenCount) { this.reset(); this.report(Result.Success); } break; case Result.Fail: m_Running = false; this.reset(); this.report(Result.Fail); break; case Result.Running: break; default: break; } }
public override void addNode(TezBTNode node) { /// if (node.GetType() == this.GetType()) { throw new System.Exception(); } base.addNode(node); }