mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(VectorStar): 添加子弹折射功能
为 VectorStar 子弹类型添加 refract 方法,处理子弹折射时的行为,与 split 方法保持一致的逻辑
This commit is contained in:
@@ -19,3 +19,6 @@ func ai():
|
||||
func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float):
|
||||
if newBullet is VectorStar:
|
||||
newBullet.forwarded = false
|
||||
func refract(newBullet: BulletBase, _entity: EntityBase, _index: int, _total: int, _lastBullet: float):
|
||||
if newBullet is VectorStar:
|
||||
newBullet.forwarded = false
|
||||
|
||||
Reference in New Issue
Block a user