summaryrefslogblamecommitdiffstats
path: root/Trigger.gd
blob: b8bc4718bbbfb473c6740deaa90e57ee60c68b4a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                        
extends Spatial

signal entered
signal exited

func _on_Inside_body_exited(body:Node):
    if $Outside.overlaps_body(body):
        emit_signal("exited")

func _on_Outside_body_exited(body:Node):
    if $Inside.overlaps_body(body):
        emit_signal("entered")