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

13 lines
284 B
GDScript
Raw Permalink Normal View History

extends BulletBase
class_name Diamond2Bullet
@onready var staticSprite: Sprite2D = $%static
func ai():
if is_instance_valid(parent):
position = parent.position
else:
if animator.is_playing():
animator.stop(true)
PresetBulletAI.forward(self, staticSprite.global_rotation)