Esempio n. 1
0
        public override void OnEnter()
        {
            var mo = node.Value as FsmNode;
            var fo = node2.Value as FsmNode;

            if (mo == null || fo == null || (mo.Value == null) || (fo.Value == null))
            {
                Debug.Log("Input incomplete, node not valid or does not exist. Make sure you assigned it properly.");
                Finish();
                return;
            }

            var a = (node.Value as FsmNode).Value as Node;

            connected.Value = a.ContainsConnection(FsmConverter.GetAnythingShallow(node2) as Node);
            Finish();
        }