mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-28 22:42:31 +08:00
refactor(BulletBase): 移除子弹注册方法并添加子子弹标记
移除所有子弹类中的register方法,将属性初始化移至其他位置 在BulletBase的trySplit和tryRefract方法中添加子子弹标记
This commit is contained in:
@@ -11,9 +11,6 @@ var traceTime: float = 2000
|
||||
var forwardTime: float = 500
|
||||
var forwarded: bool = false
|
||||
|
||||
func register():
|
||||
speed = 1
|
||||
baseDamage = 1
|
||||
func spawn():
|
||||
myColor = allColor.gradient.sample(randf())
|
||||
superlight.material = superlight.material.duplicate()
|
||||
|
||||
Reference in New Issue
Block a user