Ejemplo n.º 1
0
        protected override void RegisterPorts()
        {
            if (constructor == null)
            {
                return;
            }

            var options = new ReflectedMethodRegistrationOptions();

            options.callable           = callable;
            options.exposeParams       = exposeParams;
            options.exposedParamsCount = exposedParamsCount;

            reflectedConstructorNode = BaseReflectedConstructorNode.GetConstructorNode(constructor, options);
            if (reflectedConstructorNode != null)
            {
                reflectedConstructorNode.RegisterPorts(this, options);
            }
        }
        protected override void RegisterPorts()
        {
            if (constructor == null)
            {
                return;
            }

            var options = new ReflectedMethodRegistrationOptions();

            options.callable           = callable;
            options.exposeParams       = exposeParams;
            options.exposedParamsCount = exposedParamsCount;

            reflectedConstructorNode = BaseReflectedConstructorNode.GetConstructorNode(constructor, options);
            if (reflectedConstructorNode != null)
            {
#if UNITY_EDITOR
                //SL--
                customColor = ColorUtils.HexToColor(callable ? "285b7c" : "3a7962");
#endif
                reflectedConstructorNode.RegisterPorts(this, options);
            }
        }