diff --git a/Editor/Widgets/EcsUguiNonVisualWidgetInspector.cs b/Editor/Widgets/EcsUguiNonVisualWidgetInspector.cs index e8673b6..4c0e0ec 100644 --- a/Editor/Widgets/EcsUguiNonVisualWidgetInspector.cs +++ b/Editor/Widgets/EcsUguiNonVisualWidgetInspector.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEditor; diff --git a/LICENSE.md b/LICENSE.md index 5554a18..f10bc03 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,11 +1,7 @@ -Copyright (c) 2012 - 2022 leopotam@yandex.ru +Copyright (c) 2012-2024 leopotam@yandex.ru Данное программное обеспечение и сопутствующая документация (далее - Продукт) -выпускается на условиях двойного лицензирования - под собственнической/коммерческой -и MIT-Red лицензиями. - -Условия использования под собственнической/коммерческой лицензии обсуждаются -индивидуально, для подробностей следует писать на электронную почту. +выпускается под MIT-Red лицензией. MIT-Red регулируется совокупностью следующих правил, если хотя бы одно из них невыполнимо - использование Продукта запрещено: @@ -30,4 +26,4 @@ MIT-Red регулируется совокупностью следующих НЕ ОГРАНИЧИВАЯСЬ ИМИ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО КАКИМ-ЛИБО ИСКАМ, ЗА УЩЕРБ ИЛИ ПО ИНЫМ ТРЕБОВАНИЯМ, В ТОМ ЧИСЛЕ, ПРИ ДЕЙСТВИИ КОНТРАКТА, ДЕЛИКТЕ ИЛИ ИНОЙ СИТУАЦИИ, ВОЗНИКШИМ -ИЗ-ЗА ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫХ ДЕЙСТВИЙ С ПРОДУКТОМ. \ No newline at end of file +ИЗ-ЗА ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫХ ДЕЙСТВИЙ С ПРОДУКТОМ. \ No newline at end of file diff --git a/README.md b/README.md index 82b291b..2ef7c71 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # LeoECS Lite uGui Bindings - поддержка событий uGui в ECS-мире Интеграция событий uGui в ECS-мир. +> **ВАЖНО!** АКТИВНАЯ РАЗРАБОТКА ПРЕКРАЩЕНА, ВОЗМОЖНО ТОЛЬКО ИСПРАВЛЕНИЕ ОБНАРУЖЕННЫХ ОШИБОК. СОСТОЯНИЕ СТАБИЛЬНОЕ, ИЗВЕСТНЫХ ОШИБОК НЕ ОБНАРУЖЕНО. ЗА НОВЫМ ПОКОЛЕНИЕМ ФРЕЙМВОРКА СТОИТ СЛЕДИТЬ В БЛОГЕ https://leopotam.com/ + > Проверено на Unity 2020.3 (зависит от Unity) и содержит asmdef-описания для компиляции в виде отдельных сборок и уменьшения времени рекомпиляции основного проекта. > **ВАЖНО!** Зависит от [LeoECS Lite](https://github.com/Leopotam/ecslite) - зависимость должна быть установлена до установки этого модуля. @@ -16,7 +18,7 @@ * [Лицензия](#Лицензия) # Социальные ресурсы -[![discord](https://img.shields.io/discord/404358247621853185.svg?label=enter%20to%20discord%20server&style=for-the-badge&logo=discord)](https://discord.gg/5GZVde6) +[Блог разработчика](https://leopotam.com/) # Установка @@ -75,7 +77,7 @@ public class Startup : MonoBehaviour { public class Test1System : IEcsInitSystem { // Это поле будет автоматически инициализировано // ссылкой на экземпляр эмиттера на сцене. - readonly EcsUguiEmitter _ugui = default; + readonly EcsCustomInject _ugui = default; GameObject _btnGo; Transform _btnTransform; @@ -174,7 +176,7 @@ public class TestUguiClickEventSystem : IEcsInitSystem, IEcsRunSystem { ``` # Лицензия -Фреймворк выпускается под двумя лицензиями, [подробности тут](./LICENSE.md). +Пакет выпускается под [MIT-Red лицензией](./LICENSE.md). В случаях лицензирования по условиям MIT-Red не стоит расчитывать на персональные консультации или какие-либо гарантии. \ No newline at end of file diff --git a/Runtime/Actions/EcsUguiActionBase.cs b/Runtime/Actions/EcsUguiActionBase.cs index 281ca07..e423ea8 100755 --- a/Runtime/Actions/EcsUguiActionBase.cs +++ b/Runtime/Actions/EcsUguiActionBase.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Actions/EcsUguiClickAction.cs b/Runtime/Actions/EcsUguiClickAction.cs index 9c1784e..c376a81 100644 --- a/Runtime/Actions/EcsUguiClickAction.cs +++ b/Runtime/Actions/EcsUguiClickAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiDownAction.cs b/Runtime/Actions/EcsUguiDownAction.cs index 5d5d2c1..98b87d3 100644 --- a/Runtime/Actions/EcsUguiDownAction.cs +++ b/Runtime/Actions/EcsUguiDownAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiDragEndAction.cs b/Runtime/Actions/EcsUguiDragEndAction.cs index 5629aaf..17e40d7 100644 --- a/Runtime/Actions/EcsUguiDragEndAction.cs +++ b/Runtime/Actions/EcsUguiDragEndAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiDragMoveAction.cs b/Runtime/Actions/EcsUguiDragMoveAction.cs index bc3e222..6b289b3 100644 --- a/Runtime/Actions/EcsUguiDragMoveAction.cs +++ b/Runtime/Actions/EcsUguiDragMoveAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiDragStartAction.cs b/Runtime/Actions/EcsUguiDragStartAction.cs index eb346ee..1329d1c 100644 --- a/Runtime/Actions/EcsUguiDragStartAction.cs +++ b/Runtime/Actions/EcsUguiDragStartAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiDropAction.cs b/Runtime/Actions/EcsUguiDropAction.cs index 93d7c3d..9b60471 100644 --- a/Runtime/Actions/EcsUguiDropAction.cs +++ b/Runtime/Actions/EcsUguiDropAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiEnterAction.cs b/Runtime/Actions/EcsUguiEnterAction.cs index 8995308..dee541b 100644 --- a/Runtime/Actions/EcsUguiEnterAction.cs +++ b/Runtime/Actions/EcsUguiEnterAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiExitAction.cs b/Runtime/Actions/EcsUguiExitAction.cs index 470daee..d5608c3 100644 --- a/Runtime/Actions/EcsUguiExitAction.cs +++ b/Runtime/Actions/EcsUguiExitAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Actions/EcsUguiNoAction.cs b/Runtime/Actions/EcsUguiNoAction.cs index adc7a6e..0a32707 100644 --- a/Runtime/Actions/EcsUguiNoAction.cs +++ b/Runtime/Actions/EcsUguiNoAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- namespace Leopotam.EcsLite.Unity.Ugui { diff --git a/Runtime/Actions/EcsUguiScrollViewAction.cs b/Runtime/Actions/EcsUguiScrollViewAction.cs index 5487425..dc8002a 100644 --- a/Runtime/Actions/EcsUguiScrollViewAction.cs +++ b/Runtime/Actions/EcsUguiScrollViewAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Actions/EcsUguiSliderAction.cs b/Runtime/Actions/EcsUguiSliderAction.cs index 3329446..d180fe2 100644 --- a/Runtime/Actions/EcsUguiSliderAction.cs +++ b/Runtime/Actions/EcsUguiSliderAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Actions/EcsUguiTmpDropdownAction.cs b/Runtime/Actions/EcsUguiTmpDropdownAction.cs index ace4934..2b44d95 100644 --- a/Runtime/Actions/EcsUguiTmpDropdownAction.cs +++ b/Runtime/Actions/EcsUguiTmpDropdownAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Actions/EcsUguiTmpInputChangeAction.cs b/Runtime/Actions/EcsUguiTmpInputChangeAction.cs index 19b5681..8e9cd5a 100644 --- a/Runtime/Actions/EcsUguiTmpInputChangeAction.cs +++ b/Runtime/Actions/EcsUguiTmpInputChangeAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Actions/EcsUguiTmpInputEndAction.cs b/Runtime/Actions/EcsUguiTmpInputEndAction.cs index 6c38063..7bbff24 100644 --- a/Runtime/Actions/EcsUguiTmpInputEndAction.cs +++ b/Runtime/Actions/EcsUguiTmpInputEndAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Actions/EcsUguiUpAction.cs b/Runtime/Actions/EcsUguiUpAction.cs index 80390a0..16c22da 100644 --- a/Runtime/Actions/EcsUguiUpAction.cs +++ b/Runtime/Actions/EcsUguiUpAction.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.EventSystems; diff --git a/Runtime/Components/EcsUguiClickEvent.cs b/Runtime/Components/EcsUguiClickEvent.cs index 09e16c4..fa6eb37 100644 --- a/Runtime/Components/EcsUguiClickEvent.cs +++ b/Runtime/Components/EcsUguiClickEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiDownEvent.cs b/Runtime/Components/EcsUguiDownEvent.cs index d02a1a8..d43fefd 100644 --- a/Runtime/Components/EcsUguiDownEvent.cs +++ b/Runtime/Components/EcsUguiDownEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiDragEndEvent.cs b/Runtime/Components/EcsUguiDragEndEvent.cs index 737d206..b04f930 100644 --- a/Runtime/Components/EcsUguiDragEndEvent.cs +++ b/Runtime/Components/EcsUguiDragEndEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiDragMoveEvent.cs b/Runtime/Components/EcsUguiDragMoveEvent.cs index 32f6716..c9a34cf 100644 --- a/Runtime/Components/EcsUguiDragMoveEvent.cs +++ b/Runtime/Components/EcsUguiDragMoveEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiDragStartEvent.cs b/Runtime/Components/EcsUguiDragStartEvent.cs index 51cc871..bd84990 100644 --- a/Runtime/Components/EcsUguiDragStartEvent.cs +++ b/Runtime/Components/EcsUguiDragStartEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiDropEvent.cs b/Runtime/Components/EcsUguiDropEvent.cs index 04bd236..e1a4845 100644 --- a/Runtime/Components/EcsUguiDropEvent.cs +++ b/Runtime/Components/EcsUguiDropEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiEnterEvent.cs b/Runtime/Components/EcsUguiEnterEvent.cs index 1c377b7..b3f6efb 100644 --- a/Runtime/Components/EcsUguiEnterEvent.cs +++ b/Runtime/Components/EcsUguiEnterEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiExitEvent.cs b/Runtime/Components/EcsUguiExitEvent.cs index ce19187..3242c53 100644 --- a/Runtime/Components/EcsUguiExitEvent.cs +++ b/Runtime/Components/EcsUguiExitEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiScrollViewEvent.cs b/Runtime/Components/EcsUguiScrollViewEvent.cs index cb956e8..1d8d17e 100644 --- a/Runtime/Components/EcsUguiScrollViewEvent.cs +++ b/Runtime/Components/EcsUguiScrollViewEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Components/EcsUguiSliderChangeEvent.cs b/Runtime/Components/EcsUguiSliderChangeEvent.cs index fab064d..0023eb5 100644 --- a/Runtime/Components/EcsUguiSliderChangeEvent.cs +++ b/Runtime/Components/EcsUguiSliderChangeEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine.UI; diff --git a/Runtime/Components/EcsUguiTmpDropdownChangeEvent.cs b/Runtime/Components/EcsUguiTmpDropdownChangeEvent.cs index 86d03e4..ee8e861 100644 --- a/Runtime/Components/EcsUguiTmpDropdownChangeEvent.cs +++ b/Runtime/Components/EcsUguiTmpDropdownChangeEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Components/EcsUguiTmpInputChangeEvent.cs b/Runtime/Components/EcsUguiTmpInputChangeEvent.cs index d9a8f08..e6910a7 100644 --- a/Runtime/Components/EcsUguiTmpInputChangeEvent.cs +++ b/Runtime/Components/EcsUguiTmpInputChangeEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Components/EcsUguiTmpInputEndEvent.cs b/Runtime/Components/EcsUguiTmpInputEndEvent.cs index 38399ab..fb249eb 100644 --- a/Runtime/Components/EcsUguiTmpInputEndEvent.cs +++ b/Runtime/Components/EcsUguiTmpInputEndEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using TMPro; diff --git a/Runtime/Components/EcsUguiUpEvent.cs b/Runtime/Components/EcsUguiUpEvent.cs index 19ee62a..dc871d6 100644 --- a/Runtime/Components/EcsUguiUpEvent.cs +++ b/Runtime/Components/EcsUguiUpEvent.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Systems/EcsUguiCallbackSystem.cs b/Runtime/Systems/EcsUguiCallbackSystem.cs index 0ea35d6..409ec87 100644 --- a/Runtime/Systems/EcsUguiCallbackSystem.cs +++ b/Runtime/Systems/EcsUguiCallbackSystem.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using System; diff --git a/Runtime/Systems/EcsUguiEmitter.cs b/Runtime/Systems/EcsUguiEmitter.cs index 3e1274f..f6ad3bd 100644 --- a/Runtime/Systems/EcsUguiEmitter.cs +++ b/Runtime/Systems/EcsUguiEmitter.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using System; @@ -16,13 +16,13 @@ public class EcsUguiEmitter : MonoBehaviour { readonly Dictionary _actions = new Dictionary (64); internal void SetWorld (EcsWorld world) { -#if DEBUG && !LEOECSLITE_NO_SANITIZE_CHECKS - if (_world != null) { throw new Exception ("World already attached."); } -#endif _world = world; } public virtual EcsWorld GetWorld () { + if (_world != null && !_world.IsAlive ()) { + _world = null; + } return _world; } diff --git a/Runtime/Systems/EcsUguiProxyEmitter.cs b/Runtime/Systems/EcsUguiProxyEmitter.cs index a57276c..8ed1a0b 100644 --- a/Runtime/Systems/EcsUguiProxyEmitter.cs +++ b/Runtime/Systems/EcsUguiProxyEmitter.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/Runtime/Systems/Extensions.cs b/Runtime/Systems/Extensions.cs index f2342f7..a39793c 100644 --- a/Runtime/Systems/Extensions.cs +++ b/Runtime/Systems/Extensions.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using System; diff --git a/Runtime/Widgets/EcsUguiNonVisualWidget.cs b/Runtime/Widgets/EcsUguiNonVisualWidget.cs index 3155801..abbc957 100644 --- a/Runtime/Widgets/EcsUguiNonVisualWidget.cs +++ b/Runtime/Widgets/EcsUguiNonVisualWidget.cs @@ -1,6 +1,6 @@ // ---------------------------------------------------------------------------- -// The Proprietary or MIT-Red License -// Copyright (c) 2012-2022 Leopotam +// The MIT-Red License +// Copyright (c) 2012-2024 Leopotam // ---------------------------------------------------------------------------- using UnityEngine; diff --git a/package.json b/package.json index 5b5ae2c..092105c 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "displayName": "LeoECS Lite uGui Bindings", "description": "LeoECS Lite uGui Bindings - поддержка событий uGui в ECS-мире.", "unity": "2020.3", - "version": "2023.12.22", + "version": "2024.5.22", "keywords": [ "leoecslite", "leoecs",