コード例 #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));
        }
コード例 #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);
        }