From b3c1d2fd14aabb3e0f0c0a0a327787eb4cdebcfb Mon Sep 17 00:00:00 2001 From: Kamila Stawarska Date: Tue, 5 Mar 2024 23:13:30 +0100 Subject: [PATCH] revert stupid change --- NEG/UI/UnityUi/Buttons/BaseButton.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/NEG/UI/UnityUi/Buttons/BaseButton.cs b/NEG/UI/UnityUi/Buttons/BaseButton.cs index af4657b..7c605df 100644 --- a/NEG/UI/UnityUi/Buttons/BaseButton.cs +++ b/NEG/UI/UnityUi/Buttons/BaseButton.cs @@ -46,9 +46,6 @@ namespace NEG.UI.UnityUi.Buttons private void OnValidate() { this.ValidateRefs(); - if(text == null || gameObject == null) - return; - text.text = gameObject.name; } public void OnDeselect(BaseEventData eventData) => OnDeselected?.Invoke(eventData is SilentEventData);