Exemplo n.º 1
0
        static void LinkUpNodes()
        {
            var selobjs = UnityEditor.Selection.objects;

            if (selobjs != null || selobjs.Length != 2)
            {
                sman.LinkNodes(selobjs[0].name, selobjs[1].name);
            }
            else
            {
                Debug.Log("Need to select exactly two nodes to link");
            }
        }