1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 08:21:54 +08:00

refactor(Bullets): 重构格挡子弹逻辑并提取特效创建方法

将ParrierBullet中的特效创建逻辑提取到ParryEffect和ParryEntityEffect类中
修改Volcano子弹的碰撞形状为矩形并更新相关特效调用
调整MuyangDog角色的默认武器为Volcano
统一多个子弹脚本中的函数调用空格格式
This commit is contained in:
2026-05-10 22:30:22 +08:00
parent 0fe8daabb2
commit c52d293718
10 changed files with 40 additions and 40 deletions
+8
View File
@@ -3,3 +3,11 @@ class_name ParryEntityEffect
func beforeShot():
CameraManager.shake(50, 200)
static func createEffectEntity(entity: EntityBase, by: BulletBase):
if by is ParrierBullet:
by.parryiedTimes += 1
var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), entity.position)
eff.rotation = by.position.angle_to_point(entity.position)
eff.shot()
entity.impluse((entity.position - by.position).normalized() * 450)