示例#1
0
        private void OnButtonSelectEventListener(TabButtonContainer arg0)
        {
            foreach (var button in _tabButtons)
            {
                if (button != arg0.Button)
                {
                    button.Unselect();
                }
            }

            _activeButton = arg0.Button;
        }
        private void OnButtonClickEventListener(UnityAction <TabButtonContainer> callback)
        {
            TabButtonContainer eventArgs = new TabButtonContainer
            {
                Panel  = _panel,
                Button = this
            };

            _button.image.color = _selectionColor;

            callback.Invoke(eventArgs);
        }
示例#3
0
 private void ButtonSelectEventListener(TabButtonContainer arg0)
 {
     ShowNewPanel(arg0.Panel);
 }
示例#4
0
 private void ButtonDeleteEventListener(TabButtonContainer arg0)
 {
     RemovePanel(arg0.Panel);
 }