mirror of
https://port.numenaute.org/aleajactaest/khanat-client.git
synced 2024-11-09 16:59:03 +00:00
26 lines
868 B
GDScript3
26 lines
868 B
GDScript3
|
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 )
|