protected Node WalkAway() { if (AgentBUpset) { return(new Sequence( new SequenceParallel( AgentA.NPCBehavior_GoTo(target, false), AgentC.NPCBehavior_GoTo(target, false) ), new SequenceParallel( AgentA.NPCBehavior_OrientTowards(AgentC.transform), AgentC.NPCBehavior_OrientTowards(AgentA.transform) ), AgentB.NPCBehavior_GoTo(gorgonfront, true), AgentB.NPCBehavior_OrientTowards(gorgon), AgentB.NPCBehavior_Talk("I am going to kill them!", bubbleB) )); } else if (AgentCUpset) { return(new Sequence( new SequenceParallel( AgentA.NPCBehavior_GoTo(target3, false), AgentB.NPCBehavior_GoTo(target3, false) ), new SequenceParallel( AgentA.NPCBehavior_OrientTowards(AgentB.transform), AgentB.NPCBehavior_OrientTowards(AgentA.transform) ), AgentC.NPCBehavior_GoTo(gorgonfront, true), AgentC.NPCBehavior_OrientTowards(gorgon), AgentC.NPCBehavior_Talk("I am going to kill them!", bubbleC) )); } return(null); }
protected Node ApproachAndWait(Transform target) { return(new Sequence(AgentA.NPCBehavior_GoTo(target, true), new LeafWait(1000))); }