public static List <ActionNode> getOutgoingNodes(Agent agt, ActionNode node) { ProceduralBehavior proceduralBehavior = (ProceduralBehavior)(agt.getBehaviorExecutingByName("ProceduralBehavior")); if (proceduralBehavior != null) { if (node != null) { List <ActionNode> outgoNodes = node.getOutgoingActionNode(); Debug.Log(outgoNodes.Count); return(outgoNodes); } } return(null); }