Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void SwitchToBlocklisted()
 {
     ContainerAim.SetActive(false);
     ContainerNoPose.SetActive(false);
     ContainerAlphabet.SetActive(false);
     ContainerBlocklisted.SetActive(true);
     UpdateNoPoseMenu();
 }
Exemplo n.º 3
0
 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;
     }
 }