Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }