public void addArg(String name, UnityEngine.Object value) { TestForNewArgName(name); ArgItemHolder item = new ArgItemHolder(name, value); ArgumentList.Add(item); }
public void addArg(String name, bool value) { TestForNewArgName(name); ArgItemHolder item = new ArgItemHolder(name, value); ArgumentList.Add(item); }
public void removeArg(String name) { ArgItemHolder itemToRemove = null; foreach (ArgItemHolder arg in ArgumentList) { if (arg.name == name) { itemToRemove = arg; break; } } if (itemToRemove != null) { ArgumentList.Remove(itemToRemove); } }