mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
8 lines
239 B
GDScript
8 lines
239 B
GDScript
|
|
class_name PresetSummonAI
|
||
|
|
|
||
|
|
static func lockMaster(summon: SummonBase, myMaster: EntityBase, onTexture: bool = false) -> void:
|
||
|
|
if onTexture:
|
||
|
|
summon.position = myMaster.texture.global_position
|
||
|
|
else:
|
||
|
|
summon.position = myMaster.position
|