示例#1
0
        protected override void _Initialize()
        {
            if (_keyCodes.Count == 0)
            {
                foreach (KeyCode kc in Enum.GetValues(typeof(KeyCode)))
                {
                    _keyCodes.Add(kc);
                }
            }

            var path   = SettingName.Split('/');
            var header = path[1];

            _action = path[2];
            Setting.SetLabel($"{header}/{_action}");
            _button.onClick.AddListener(OnClick);
        }