protected override void OnInit() { PinCollection.AddInput("A", typeof(bool)); PinCollection.AddInput("B", typeof(bool)); PinCollection.AddOutput("Result", typeof(bool)); }
protected override void OnInit() { Type = AllowedTypes[0]; PinCollection.AddInput("A", Type); PinCollection.AddInput("B", Type); PinCollection.AddOutput("Result", typeof(bool)); }
protected override void OnInit() { Type = AllowedTypes[0]; Variables.Add("Min", Type, null, ""); Variables.Add("Max", Type, null, ""); PinCollection.AddOutput("Random", Type); }
protected override void OnInit() { PinCollection.AddInput("Input", typeof(object)); var input = PinCollection.Get("Input"); input.IsDynamicType = true; PinCollection.AddOutput("Result", typeof(string)); }
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); } }
protected override void OnInit() { Debug.Log("Hi"); PinCollection.AddOutput("Value", typeof(object)); }
protected override void OnInit() { PinCollection.AddInput("Value", typeof(object)); PinCollection.AddOutput("NewValue", typeof(object)); }
protected override void OnInit() { Type = AllowedTypes[0]; PinCollection.AddOutput("Value", Type); Variables.Add("Value", Type, TypeUtils.GetDefaultValue(Type), "Input"); }