From ffeb1655c8c27caa0b24648cebb27d29246d8522 Mon Sep 17 00:00:00 2001 From: Bragin Stepan Date: Fri, 6 Mar 2026 21:03:33 +0500 Subject: [PATCH] fix --- .gitignore | 4 ++++ .../Teleport/Systems/DealDamageAfterTeleportSystem.cs | 3 ++- .../Teleport/Systems/FindRandomPointForTeleportSystem.cs | 1 + .../Runtime/Utilities/InputManagement/InputStateMachine.cs | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a2ffc6d..b3efbb4 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ # Visual Studio cache directory .vs/ .agent/ +.agents/ # Gradle cache directory .gradle/ @@ -65,6 +66,9 @@ sysinfo.txt *.unitypackage.meta *.app +# AI +Antigravity.Ide.Editor.csproj + # Crashlytics generated file crashlytics-build.properties diff --git a/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/DealDamageAfterTeleportSystem.cs b/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/DealDamageAfterTeleportSystem.cs index 1741172..4f76076 100644 --- a/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/DealDamageAfterTeleportSystem.cs +++ b/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/DealDamageAfterTeleportSystem.cs @@ -46,7 +46,8 @@ namespace _Project.Develop.Runtime.Logic.Gameplay.Features.Teleport.Systems private void OnEndTeleport() { - if (_radius <= 0 || _damage <= 0) return; + if (_radius <= 0 || _damage <= 0) + return; int count = Physics.OverlapSphereNonAlloc( _toPoint.position, diff --git a/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/FindRandomPointForTeleportSystem.cs b/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/FindRandomPointForTeleportSystem.cs index 850445d..ddea822 100644 --- a/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/FindRandomPointForTeleportSystem.cs +++ b/Assets/_Project/Develop/Runtime/Logic/Gameplay/Features/Teleport/Systems/FindRandomPointForTeleportSystem.cs @@ -44,6 +44,7 @@ namespace _Project.Develop.Runtime.Logic.Gameplay.Features.Teleport.Systems private Vector3 GetRandomPointInRadius(Vector3 center, float radius) { Vector2 randomPoint = Random.insideUnitCircle * radius; + return center + new Vector3(randomPoint.x, 0f, randomPoint.y); } } diff --git a/Assets/_Project/Develop/Runtime/Utilities/InputManagement/InputStateMachine.cs b/Assets/_Project/Develop/Runtime/Utilities/InputManagement/InputStateMachine.cs index 490a719..f1735c6 100644 --- a/Assets/_Project/Develop/Runtime/Utilities/InputManagement/InputStateMachine.cs +++ b/Assets/_Project/Develop/Runtime/Utilities/InputManagement/InputStateMachine.cs @@ -28,7 +28,7 @@ namespace _Project.Develop.Runtime.Utils.InputManagement ICompositeCondition playerToUiStateCondition = new CompositeCondition(LogicOperationsUtils.Or) .Add(new FuncCondition(() => _uiInput.IsEnabled)); - // .Add(new FuncCondition(() => _playerHorseInput.IsEnabled)); + // .Add(new FuncCondition(() => _playerHorseInput.IsEnabled)); просто как пример что включен только 1 вариант ICompositeCondition uiToPlayerStateCondition = new CompositeCondition(LogicOperationsUtils.Or) .Add(new FuncCondition(() => _playerInput.IsEnabled));