summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Managers/HitManager.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-11-10 18:47:26 +0800
committerchai <chaifix@163.com>2020-11-10 18:47:26 +0800
commitde4941bb799df774f29857ce42a7c139050fa096 (patch)
tree281a1ac18ffe5682bb2f92eafdbe334b1d7f2632 /Assets/Scripts/Managers/HitManager.cs
parentd21321d1e0d594ab247679cbfde86737aa24979c (diff)
*hitmanager
Diffstat (limited to 'Assets/Scripts/Managers/HitManager.cs')
-rw-r--r--Assets/Scripts/Managers/HitManager.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Assets/Scripts/Managers/HitManager.cs b/Assets/Scripts/Managers/HitManager.cs
index 2b198788..9ccb3b39 100644
--- a/Assets/Scripts/Managers/HitManager.cs
+++ b/Assets/Scripts/Managers/HitManager.cs
@@ -35,6 +35,16 @@ public class HitManager : Singleton<HitManager>
m_HurtBoxes.Add(hurtbox);
}
+ public void RemoveHitBox(Hitbox hitbox)
+ {
+ m_HitBoxes.Remove(hitbox);
+ }
+
+ public void RemoveHurtBox(Hurtbox hurtbox)
+ {
+ m_HurtBoxes.Remove(hurtbox);
+ }
+
/// <summary>
/// 根据碰撞结果产生击中信息
/// </summary>