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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user