private ScriptObject GetVariableObject(string name) { if (m_variableDictionary.ContainsKey(name)) { return(m_variableDictionary[name]); } if (m_parent != null) { return(m_parent.GetVariableObject(name)); } return(null); }
private ScriptObject GetVariableObject(string name) { var ret = m_variableDictionary[name]; if (ret != null) { return(ret); } if (m_parent != null) { return(m_parent.GetVariableObject(name)); } return(null); }