GetVariableObject() private method

private GetVariableObject ( string name ) : ScriptObject
name string
return Scorpio.ScriptObject
コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }