FlatRedBall.Glue.ElementRuntime.SetCustomVariableValue C# (CSharp) Method

SetCustomVariableValue() public method

public SetCustomVariableValue ( string name, object value ) : void
name string
value object
return void
        public void SetCustomVariableValue(string name, object value)
        {
            for(int i = 0; i < mCustomVariables.Count; i++)
            {
                PropertyValuePair pvp = mCustomVariables[i];

                if (pvp.Property == name)
                {
                    pvp.Value = value;

                    mCustomVariables[i] = pvp;
                    break;
                }
            }
        }