Fixing is endless
This commit is contained in:
1 parent
c0dec163cd
commit
3ca9444333
45 files changed
+123468
-18592
No files matched your search
@@ -22,7 +22,7 @@ namespace Code.OfficeGame.BattleMode.HitBoxes
|
||||
_hitBoxLayerMask = LayerMask.GetMask("HitBox");
|
||||
}
|
||||
|
||||
public void CheckHitsForCurrentFrame(Action<Collider> onNewTargetHit, HitBoxPartType hitBoxPartType)
|
||||
public void CheckHitsForCurrentFrame(Action<Collider, Collider> onNewTargetHit, HitBoxPartType hitBoxPartType)
|
||||
{
|
||||
BoxCollider box = bodyParts[hitBoxPartType];
|
||||
Transform boxTransform = box.transform;
|
||||
@@ -46,7 +46,7 @@ namespace Code.OfficeGame.BattleMode.HitBoxes
|
||||
|
||||
if (hitCol.transform.root == transform.root) continue;
|
||||
|
||||
onNewTargetHit?.Invoke(hitCol);
|
||||
onNewTargetHit?.Invoke(box, hitCol);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user