diff --git a/Runtime/Actions/EcsUiActionBase.cs b/Runtime/Actions/EcsUiActionBase.cs index 9fd1133..28996b6 100755 --- a/Runtime/Actions/EcsUiActionBase.cs +++ b/Runtime/Actions/EcsUiActionBase.cs @@ -31,7 +31,7 @@ public abstract class EcsUiActionBase : MonoBehaviour { [SerializeField] UnityEngine.UI.Selectable _selectable = null; - void Awake () { + protected virtual void Awake () { if (_nameRegistrationType == EcsUiActionNameRegistrationType.OnAwake) { ValidateEmitter (); RegisterName (true); diff --git a/Runtime/Actions/EcsUiScrollViewAction.cs b/Runtime/Actions/EcsUiScrollViewAction.cs index 9bc0aaf..000f529 100644 --- a/Runtime/Actions/EcsUiScrollViewAction.cs +++ b/Runtime/Actions/EcsUiScrollViewAction.cs @@ -15,7 +15,8 @@ namespace Leopotam.Ecs.Ui.Actions { public sealed class EcsUiScrollViewAction : EcsUiActionBase { ScrollRect _scrollView; - void Awake () { + protected override void Awake () { + base.Awake (); _scrollView = GetComponent (); _scrollView.onValueChanged.AddListener (OnScrollViewValueChanged); } diff --git a/Runtime/Actions/EcsUiSliderAction.cs b/Runtime/Actions/EcsUiSliderAction.cs index 5d77e8e..476a7f7 100644 --- a/Runtime/Actions/EcsUiSliderAction.cs +++ b/Runtime/Actions/EcsUiSliderAction.cs @@ -15,7 +15,8 @@ namespace Leopotam.Ecs.Ui.Actions { public sealed class EcsUiSliderAction : EcsUiActionBase { Slider _slider; - void Awake () { + protected override void Awake () { + base.Awake (); _slider = GetComponent (); _slider.onValueChanged.AddListener (OnSliderValueChanged); } diff --git a/Runtime/Actions/EcsUiTmpDropdownAction.cs b/Runtime/Actions/EcsUiTmpDropdownAction.cs index a67595f..3c50dd5 100644 --- a/Runtime/Actions/EcsUiTmpDropdownAction.cs +++ b/Runtime/Actions/EcsUiTmpDropdownAction.cs @@ -15,7 +15,8 @@ namespace Leopotam.Ecs.Ui.Actions { public sealed class EcsUiTmpDropdownAction : EcsUiActionBase { TMP_Dropdown _dropdown; - void Awake () { + protected override void Awake () { + base.Awake (); _dropdown = GetComponent (); _dropdown.onValueChanged.AddListener (OnDropdownValueChanged); } diff --git a/Runtime/Actions/EcsUiTmpInputAction.cs b/Runtime/Actions/EcsUiTmpInputAction.cs index ac05e74..45470e6 100644 --- a/Runtime/Actions/EcsUiTmpInputAction.cs +++ b/Runtime/Actions/EcsUiTmpInputAction.cs @@ -15,7 +15,8 @@ namespace Leopotam.Ecs.Ui.Actions { public sealed class EcsUiTmpInputAction : EcsUiActionBase { TMP_InputField _input; - void Awake () { + protected override void Awake () { + base.Awake (); _input = GetComponent (); _input.onValueChanged.AddListener (OnInputValueChanged); _input.onEndEdit.AddListener (OnInputEnded); diff --git a/package.json b/package.json index 7a9244c..8930c31 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "displayName": "LeoECS uGui Bindings", "description": "LeoECS uGui Bindings - поддержка событий uGui в ECS-мире.", "unity": "2020.3", - "version": "2022.4.22", + "version": "2022.5.22", "keywords": [ "leoecs", "ecs",