private bool SetVariableObject(string name, ScriptObject obj)
 {
     if (this.m_variableDictionary.ContainsKey(name))
     {
         this.m_variableDictionary[name] = obj.Assign();
         return(true);
     }
     return((this.m_parent != null) && this.m_parent.SetVariableObject(name, obj));
 }
 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);
 }
Exemple #3
0
 private void SetVariableForce(string name, ScriptObject obj)
 {
     m_variableDictionary[name] = obj.Assign();
 }