Пример #1
0
        protected override void OnInit()
        {
            PinCollection.AddInput("A", typeof(bool));
            PinCollection.AddInput("B", typeof(bool));

            PinCollection.AddOutput("Result", typeof(bool));
        }
Пример #2
0
        protected override void OnInit()
        {
            Type = AllowedTypes[0];

            PinCollection.AddInput("A", Type);
            PinCollection.AddInput("B", Type);
            PinCollection.AddOutput("Result", typeof(bool));
        }
Пример #3
0
        protected override void OnInit()
        {
            Type = AllowedTypes[0];

            Variables.Add("Min", Type, null, "");
            Variables.Add("Max", Type, null, "");

            PinCollection.AddOutput("Random", Type);
        }
Пример #4
0
        protected override void OnInit()
        {
            PinCollection.AddInput("Input", typeof(object));
            var input = PinCollection.Get("Input");

            input.IsDynamicType = true;

            PinCollection.AddOutput("Result", typeof(string));
        }
Пример #5
0
        void onInputTypeChanged(bool wasInput, bool isInput)
        {
            var pin = PinCollection.Get("Value");

            if (pin != null)
            {
                Pin.Disconnect(pin);
            }

            PinCollection.Clear();
            if (IsInput)
            {
                PinCollection.AddInput("Value", Type);
            }
            else
            {
                PinCollection.AddOutput("Value", Type);
            }
        }
Пример #6
0
 protected override void OnInit()
 {
     Debug.Log("Hi");
     PinCollection.AddOutput("Value", typeof(object));
 }
Пример #7
0
 protected override void OnInit()
 {
     PinCollection.AddInput("Value", typeof(object));
     PinCollection.AddOutput("NewValue", typeof(object));
 }
Пример #8
0
 protected override void OnInit()
 {
     Type = AllowedTypes[0];
     PinCollection.AddOutput("Value", Type);
     Variables.Add("Value", Type, TypeUtils.GetDefaultValue(Type), "Input");
 }