/// <summary> /// Adds a new variable or overwrites one with the same name. /// </summary> public static void AddVariable(ScriptProcessor processor, string identifier, object data) { AddVariable(processor, identifier, ScriptInAdapter.Translate(processor, data)); }
/// <summary> /// Sets a member of the original script object. /// </summary> public void SetMember(string identifier, object value) { var data = ScriptInAdapter.Translate(_processor, value); _objReference.SetMember(_processor, _processor.CreateString(identifier), false, data); }