public void SetInput(ComparatorInput item, TabSchemeObject schemeObject) { int index = tabButtons.IndexOf(item); item.text.text = schemeObject.name; objects[index] = schemeObject.schemeObject; panel.AddInput(index); }
public void Add() { GameObject newO = Instantiate(inputPrefab, content); list.Add(newO); ComparatorInput input = newO.GetComponent <ComparatorInput>(); input.panel = this; input.group = group; group.Subscribe(input); transform.SetAsLastSibling(); fitter.SetLayoutVertical(); LayoutRebuilder.ForceRebuildLayoutImmediate(rect); subject.inputs.Add(null); subject.types.Add(false); }
public void SetInputType(ComparatorInput item, bool newType) { int index = tabButtons.IndexOf(item); bools[index] = newType; }
public void SetInputType(ComparatorInput item) { int index = tabButtons.IndexOf(item); bools[index] = !bools[index]; }