This commit is contained in:
Bragin Stepan
2026-03-06 21:03:33 +05:00
parent d3dce07cf5
commit ffeb1655c8
4 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View File

@@ -28,6 +28,7 @@
# Visual Studio cache directory # Visual Studio cache directory
.vs/ .vs/
.agent/ .agent/
.agents/
# Gradle cache directory # Gradle cache directory
.gradle/ .gradle/
@@ -65,6 +66,9 @@ sysinfo.txt
*.unitypackage.meta *.unitypackage.meta
*.app *.app
# AI
Antigravity.Ide.Editor.csproj
# Crashlytics generated file # Crashlytics generated file
crashlytics-build.properties crashlytics-build.properties

View File

@@ -46,7 +46,8 @@ namespace _Project.Develop.Runtime.Logic.Gameplay.Features.Teleport.Systems
private void OnEndTeleport() private void OnEndTeleport()
{ {
if (_radius <= 0 || _damage <= 0) return; if (_radius <= 0 || _damage <= 0)
return;
int count = Physics.OverlapSphereNonAlloc( int count = Physics.OverlapSphereNonAlloc(
_toPoint.position, _toPoint.position,

View File

@@ -44,6 +44,7 @@ namespace _Project.Develop.Runtime.Logic.Gameplay.Features.Teleport.Systems
private Vector3 GetRandomPointInRadius(Vector3 center, float radius) private Vector3 GetRandomPointInRadius(Vector3 center, float radius)
{ {
Vector2 randomPoint = Random.insideUnitCircle * radius; Vector2 randomPoint = Random.insideUnitCircle * radius;
return center + new Vector3(randomPoint.x, 0f, randomPoint.y); return center + new Vector3(randomPoint.x, 0f, randomPoint.y);
} }
} }

View File

@@ -28,7 +28,7 @@ namespace _Project.Develop.Runtime.Utils.InputManagement
ICompositeCondition playerToUiStateCondition = new CompositeCondition(LogicOperationsUtils.Or) ICompositeCondition playerToUiStateCondition = new CompositeCondition(LogicOperationsUtils.Or)
.Add(new FuncCondition(() => _uiInput.IsEnabled)); .Add(new FuncCondition(() => _uiInput.IsEnabled));
// .Add(new FuncCondition(() => _playerHorseInput.IsEnabled)); // .Add(new FuncCondition(() => _playerHorseInput.IsEnabled)); просто как пример что включен только 1 вариант
ICompositeCondition uiToPlayerStateCondition = new CompositeCondition(LogicOperationsUtils.Or) ICompositeCondition uiToPlayerStateCondition = new CompositeCondition(LogicOperationsUtils.Or)
.Add(new FuncCondition(() => _playerInput.IsEnabled)); .Add(new FuncCondition(() => _playerInput.IsEnabled));