Silly enemy, attack bug fix
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user