public void SwitchToAlphabet(bool updateCollapsedState) { foreach (SelectorItem item in SelectorItems.Values.OrderBy(item => item.InteractiveObject.GetName())) { if (item.InteractiveObject.Blocklisted) { continue; } if (IsRootItem(item)) { if (item.transform.parent != ContentAlphabet.transform) { item.transform.SetParent(ContentAlphabet.transform); } item.CollapsableButton.gameObject.SetActive(item.Collapsable); item.transform.SetAsLastSibling(); } else { item.gameObject.SetActive(item.InteractiveObject.Enabled); item.transform.SetAsLastSibling(); } if (updateCollapsedState) { item.SetCollapsedState(true); } //item.CollapsableButton.interactable = item.HasChilds(); } selectorItemsAimMenu.Clear(); selectorItemsNoPoseMenu.Clear(); ContainerAim.SetActive(false); ContainerNoPose.SetActive(false); ContainerAlphabet.SetActive(true); ContainerBlocklisted.SetActive(false); }
public void SwitchToBlocklisted() { ContainerAim.SetActive(false); ContainerNoPose.SetActive(false); ContainerAlphabet.SetActive(false); ContainerBlocklisted.SetActive(true); UpdateNoPoseMenu(); }
public void SwitchToAim() { ContainerAim.SetActive(true); ContainerNoPose.SetActive(false); ContainerAlphabet.SetActive(false); ContainerBlocklisted.SetActive(false); foreach (SelectorItem item in SelectorItems.Values) { if (!IsRootItem(item)) { item.gameObject.SetActive(false); } item.CollapsableButton.gameObject.SetActive(false); //item.CollapsableButton.interactable = false; } }