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

feat(Cogwheel): 添加分裂功能并实现销毁动画

为Cogwheel子弹添加split方法实现分裂功能,同时配置销毁动画资源并启用autoDestroyAnimation
This commit is contained in:
2026-02-15 20:17:36 +08:00
parent a72c0032d5
commit f8235e27e2
2 changed files with 70 additions and 2 deletions
+6
View File
@@ -28,5 +28,11 @@ func applyDot():
func refract(newBullet: BulletBase, _entity: EntityBase, _index: int, _total: int, _lastBullet: float):
if newBullet is CogwheelBullet:
newBullet.initialRotate = initialRotate
newBullet.rotateSpeed = initialRotate
return newBullet
func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float):
if newBullet is CogwheelBullet:
newBullet.initialRotate = initialRotate
newBullet.rotateSpeed = initialRotate
return newBullet