SetVariableObject() private méthode

private SetVariableObject ( string name, ScriptObject obj ) : bool
name string
obj Scorpio.ScriptObject
Résultat 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);
 }