Something fixed
This commit is contained in:
1 parent
f40a10912c
commit
7d236d14cd
72 files changed
+270482
-11409
No files matched your search
@@ -15,10 +15,10 @@ namespace Code.OfficeGame.BattleMode.HitBoxes
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
foreach (var part in bodyParts.Values)
|
||||
{
|
||||
part.enabled = false;
|
||||
}
|
||||
// foreach (var part in bodyParts.Values)
|
||||
// {
|
||||
// part.enabled = false;
|
||||
// }
|
||||
_hitBoxLayerMask = LayerMask.GetMask("HitBox");
|
||||
}
|
||||
|
||||
@@ -44,9 +44,9 @@ namespace Code.OfficeGame.BattleMode.HitBoxes
|
||||
{
|
||||
Collider hitCol = _hitResults[i];
|
||||
|
||||
Debug.Log($"Попадание по {hitCol.name}");
|
||||
|
||||
if (hitCol.transform.root == transform.root) continue;
|
||||
|
||||
Debug.Log($"Попадание по {hitCol.name}");
|
||||
|
||||
onNewTargetHit?.Invoke(hitCol);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user