Cleanup
This commit is contained in:
parent
e30470d27a
commit
1e66136bfc
@ -27,8 +27,6 @@ namespace NEG.UI.UnityUi.Buttons
|
||||
|
||||
public TMP_Text Text => text;
|
||||
|
||||
private bool isHovered;
|
||||
|
||||
[SerializeField, Self] private Button button;
|
||||
[SerializeField, Child(Flag.Optional)] private TMP_Text text;
|
||||
[SerializeField, Child(Flag.Optional)] private Image icon;
|
||||
@ -36,7 +34,7 @@ namespace NEG.UI.UnityUi.Buttons
|
||||
[SerializeField] private ButtonSettings groupButtonSettings;
|
||||
//[SerializeField, Self(Flag.Optional)] private ButtonSettingOverride overrideSettings;
|
||||
|
||||
private Dictionary<string, ButtonElementBehaviour> behaviours = new Dictionary<string, ButtonElementBehaviour>();
|
||||
private readonly Dictionary<string, ButtonElementBehaviour> behaviours = new Dictionary<string, ButtonElementBehaviour>();
|
||||
|
||||
public virtual void OnSelect(BaseEventData eventData) => OnSelected?.Invoke(eventData is SilentEventData);
|
||||
|
||||
@ -91,7 +89,6 @@ namespace NEG.UI.UnityUi.Buttons
|
||||
protected virtual void OnClicked()
|
||||
{
|
||||
OnDeselect(null);
|
||||
isHovered = false;
|
||||
OnButtonPressed?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c431f6df68cb4163b9764b6a87abd31a
|
||||
timeCreated: 1683915618
|
||||
Loading…
x
Reference in New Issue
Block a user