Silly enemy, attack bug fix

This commit is contained in:
ThomasCharester committed 2026-11-18 21:34:31 +03:00
1 parent b02e201cd0
commit 1d107924bf
567 files changed
+197825 -635242

No files matched your search

@@ -15,7 +15,7 @@ namespace Code.OfficeGame.BattleMode.Actions.Deciders
private CameraStateMachine _cameraStateMachine;
private IInputService _inputService;
private Quaternion _targetRotation;
private Quaternion _targetRotation, _chosenRotation;
private LayerMask _navMeshMask;
@@ -46,11 +46,13 @@ namespace Code.OfficeGame.BattleMode.Actions.Deciders
_waitForEnterTokenSource.Dispose();
_waitForEnterTokenSource = null;
if (_chosenRotation == default) _chosenRotation = _targetRotation;
return new RotationBattleActionDeciderResult()
{
ResultCode = _decisionResultCode,
Rotation = _targetRotation
Rotation = _chosenRotation
};
}
@@ -153,6 +155,8 @@ namespace Code.OfficeGame.BattleMode.Actions.Deciders
_playerLockedDecisionMarker.transform.rotation = _targetRotation;
_playerLockedDecisionMarker.Toggle(true);
_chosenRotation = _targetRotation;
_waitForEnterTokenSource?.Cancel();
}
}