void DeactivateTab(Tab tab) { tab.TabObject.SetActive(false); }
void AddCallback(Tab tab, int index) { var tabName = tab.Name; UnityAction callback = () => SelectTab(tabName); callbacks.Add(callback); defaultButtons[index].onClick.AddListener(callbacks[index]); }
void RemoveCallback(Tab tab, int index) { if ((tab!=null) && (index < callbacks.Count)) { defaultButtons[index].onClick.RemoveListener(callbacks[index]); } }
/// <summary> /// Sets the button data. /// </summary> /// <param name="tab">Tab.</param> public abstract void SetButtonData(Tab tab);