Exemplo n.º 1
0
 public object Evaluate(string code, object @event)
 {
     if (evaluateFunction == null)
     {
         return(null);
     }
     Object[] args = new Object[2];
     args[0] = code;
     args[1] = ScriptableObject.CreateWrapper(@event);
     return(evaluateFunction.Invoke(evaluateFunction.GetParent(), args));
 }