mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-04-19 13:09:41 +00:00
fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user