public void SetSortMethod(string method, bool ascending, string[] filters) { if (this.Targets == null) { return; } foreach (GameObject target in this.Targets) { if (!Object.op_Equality((Object)target, (Object)null)) { ISortableList component = (ISortableList)target.GetComponent <ISortableList>(); if (component != null) { component.SetSortMethod(method, ascending, filters); } } } }
private void UpdateTarget(string method, bool ascending) { if (Object.op_Equality((Object)this.mMenu, (Object)null)) { return; } string[] filters = this.mMenu.GetFilters(false); this.UpdateFilterState(filters != null); if (!Object.op_Inequality((Object)this.Target, (Object)null)) { return; } ISortableList component = (ISortableList)this.Target.GetComponent <ISortableList>(); if (component == null) { return; } component.SetSortMethod(method, ascending, filters); }