mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
17 lines
296 B
GDScript
17 lines
296 B
GDScript
|
|
extends BulletBase
|
||
|
|
class_name LockLauncher
|
||
|
|
|
||
|
|
enum PositionType {
|
||
|
|
SELF,
|
||
|
|
TEXTURE,
|
||
|
|
}
|
||
|
|
|
||
|
|
@export var target: PositionType = PositionType.SELF
|
||
|
|
|
||
|
|
func ai():
|
||
|
|
if target == PositionType.SELF:
|
||
|
|
position = launcher.position
|
||
|
|
else:
|
||
|
|
position = launcher.texture.global_position
|
||
|
|
rotation = launcher.rotation
|