private SetVariableObject ( string name, |
||
name | string | |
obj | ||
return | bool |
private bool SetVariableObject(string name, ScriptObject obj) { if (m_variableDictionary.SetValue(name, obj.Assign())) { return(true); } if (m_parent != null) { return(m_parent.SetVariableObject(name, obj)); } return(false); }
private bool SetVariableObject(string name, ScriptObject obj) { if (m_variableDictionary.ContainsKey(name)) { m_variableDictionary[name] = obj.Assign(); return(true); } if (m_parent != null) { return(m_parent.SetVariableObject(name, obj)); } return(false); }