public override bool Execute(FSMBehaviour fsm) { NodePort inPort = GetInputPort("inDecision"); if (inPort.Connection == null) { return(false); } NodeBase_Decision nodeDecision = (NodeBase_Decision)inPort.Connection.node; return(!nodeDecision.Execute(fsm)); }
public override string GetNoodleLabel(NodePort port) { NodePort inPort = GetInputPort("inDecision"); string label = FSMGUtility.StringTag_Undefined; if (inPort.Connection != null) { NodeBase_Decision nodeDecision = (NodeBase_Decision)inPort.Connection.node; label = "(Not) - " + nodeDecision.GetNoodleLabel(inPort); } return(label); }