1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Diamond2.gd
T

13 lines
284 B
GDScript
Raw 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)