//Is the new variable added eligable to be used by this param? void OnBBVariableAdded(Variable variable) { if (variable != null && variable.name == this.name && variable.CanConvertTo(this.varType)) { varRef = variable; } }
//reason: automatically links to varefs if ref is missing when var is added to bb void OnBBVariableAdded(Variable variable) { // if ( variable.ID == targetVariableID ) { varRef = variable; } if (this.varRef == null && variable.name == this.name && variable.CanConvertTo(varType)) { varRef = variable; } }