Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/2022.5.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopotam committed May 22, 2022
2 parents aa41343 + ea98324 commit 70cd760
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Runtime/Actions/EcsUiActionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Actions/EcsUiScrollViewAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ScrollRect> ();
_scrollView.onValueChanged.AddListener (OnScrollViewValueChanged);
}
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Actions/EcsUiSliderAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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> ();
_slider.onValueChanged.AddListener (OnSliderValueChanged);
}
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Actions/EcsUiTmpDropdownAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TMP_Dropdown> ();
_dropdown.onValueChanged.AddListener (OnDropdownValueChanged);
}
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Actions/EcsUiTmpInputAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TMP_InputField> ();
_input.onValueChanged.AddListener (OnInputValueChanged);
_input.onEndEdit.AddListener (OnInputEnded);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 70cd760

Please sign in to comment.