1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Update README.md

This commit is contained in:
Thor Brigsted 2017-11-03 09:17:10 +01:00 committed by GitHub
parent 86c7966fe6
commit 46e32234f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,8 @@ public class MathNode : Node {
public override object GetValue(NodePort port) {
// Get new a and b values from input connections. Fallback to field values if input is not connected
float a = GetInputByFieldName<float>("a", this.a);
float b = GetInputByFieldName<float>("b", this.b);
float a = GetInputValue<float>("a", this.a);
float b = GetInputValue<float>("b", this.b);
// After you've gotten your input values, you can perform your calculations and return a value
if (port.fieldName == "result")