Ejemplo n.º 1
0
 //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;
     }
 }
Ejemplo n.º 2
0
 //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;
     }
 }