private void ExpandPanel(UIExpandButton button) { foreach (var btn in _expandButtons) { if (btn.IsActive) { btn.Close(); } } button.Expand(); button.transform.GetChild(0).gameObject.SetActive(false); onButtonClicked?.Invoke(); }
private void HideControls(UIExpandButton pressedButton) { _saveButton.gameObject.SetActive(false); _closeButton.gameObject.SetActive(false); _backspaceButton.gameObject.SetActive(false); _spaceButton.gameObject.SetActive(false); _enterButton.gameObject.SetActive(false); _symbolModeButton.gameObject.SetActive(false); foreach (var item in _expandButtons) { if (item != pressedButton) { item.gameObject.SetActive(false); } } }