Example #1
0
 private void Awake()
 {
     tabButton       = GetComponentInParent <PressableButtonHoloLens2>();
     tabInteractable = tabButton.GetComponent <Interactable>();
     tabInteractable.OnClick.AddListener(ShowTab);
     tabManager = tabButton.GetComponentInParent <TabManager>();
     tabManager.SetTab(this);
     HideTab();
 }