Something fixed
This commit is contained in:
1 parent
f40a10912c
commit
7d236d14cd
72 files changed
+270482
-11409
No files matched your search
@@ -125,7 +125,12 @@ namespace Code.OfficeGame.BattleMode.Actions.Deciders
|
||||
var position = _cameraStateMachine.Camera.transform.position;
|
||||
var direction = _cameraStateMachine.Camera.transform.forward;
|
||||
|
||||
var hitCount = Physics.RaycastNonAlloc(position, direction, _hitBuffer, Mathf.Infinity, _navMeshMask);
|
||||
var hitCount = Physics.RaycastNonAlloc(
|
||||
position,
|
||||
direction,
|
||||
_hitBuffer,
|
||||
Mathf.Infinity,
|
||||
_navMeshMask);
|
||||
|
||||
if (hitCount == 0
|
||||
|| _entityPosition == Vector3.zero) return;
|
||||
|
||||
Reference in new issue
Block a user