Assets/Watson/Scripts/Utilities/Config.cs
/// <summary>
/// Finds a variable name and returns the Variable object
/// </summary>
/// <param name="key">The name of the variable to find.</param>
/// <returns>Returns the Variable object or null if not found.</returns>
Finds a variable name and returns the Variable object
Finds a variable name and returns the Variable object
public Variable GetVariable(string key)
        {
            foreach (var var in m_Variables)
                if (var.Key == key)
                    return var;
            return null;
        }
public Variable GetVariable ( string key ) { foreach ( var var in m_Variables ) if ( var . Key == key ) return var ; return null ; }
Finds a variable name and returns the Variable object
Finds a variable name and returns the Variable object
Returns the Variable object or null if not found.
Returns the Variable object or null if not found .
key
string
The name of the variable to find.
The name of the variable to find .