khanat-client/assets/creatures/arche/Arche.gd

26 lines
868 B
GDScript3
Raw Normal View History

2021-03-23 22:24:40 +00:00
extends Spatial
signal animation_finished( anim_name )
signal limb_body_entered( limb, body )
func _on_AnimationPlayer_animation_finished(anim_name):
emit_signal( "animation_finished", anim_name )
func _on_limb_blue_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )
func _on_limb_pink_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )
func _on_limb_red_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )
func _on_limb_yellow_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )
func _on_limb_green_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )
func _on_limb_cyan_area_body_entered(body):
emit_signal( "limb_body_entered", Datas.Cloth.LIMB.torso, body )