FlatRedBall.Glue.SaveClasses.ScreenSave.SetCustomVariable C# (CSharp) 메소드

SetCustomVariable() 공개 메소드

public SetCustomVariable ( string propertyName, object valueToSet ) : void
propertyName string
valueToSet object
리턴 void
        public void SetCustomVariable(string propertyName, object valueToSet)
        {
            for (int i = 0; i < CustomVariables.Count; i++)
            {
                if (CustomVariables[i].Name == propertyName)
                {
                    CustomVariable cv = CustomVariables[i];
                    cv.DefaultValue = valueToSet;
                    CustomVariables[i] = cv;
                }
            }
        }