public override void Init(Vector2 pos) { base.Init(pos); _receivedOutputs = new List <IOutput>(); inputSocket.Init(this); outputSocket.Init(this); SetType(NodeType.Float); SetHeader("operation"); outputSocket.SetValue(0f); dropdown.AddOptions(new List <TMP_Dropdown.OptionData>() { new TMP_Dropdown.OptionData(MathOperations.Multiply.ToString()), new TMP_Dropdown.OptionData(MathOperations.Divide.ToString()), new TMP_Dropdown.OptionData(MathOperations.Add.ToString()), new TMP_Dropdown.OptionData(MathOperations.Substract.ToString()) }); dropdown.onValueChanged.AddListener(selected => { OnConnectedValueUpdated(); }); }