File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
addons/godot-xr-tools/audio Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ extends AudioStreamPlayer3D
1212
1313
1414## XRToolsAreaAudioType to associate with this Area Audio
15- @export var area_audio_type : XRToolsAreaAudioType
15+ @export var area_audio_type : XRToolsAreaAudioType
1616
17- @onready var area : Area3D = get_parent ()
17+ @onready var area : Area3D = get_parent ()
1818
1919
20- # Add support for is_class on XRTools classes
21- func is_xr_class (xr_name : String ) -> bool :
20+ ## Add support for is_class on XRTools classes
21+ func is_xr_class (xr_name : String ) -> bool :
2222 return xr_name == "XRToolsAreaAudio"
2323
2424
@@ -30,23 +30,23 @@ func _ready() -> void:
3030 area .body_exited .connect (_on_body_exited )
3131
3232
33- func _on_body_entered (_body ) :
33+ func _on_body_entered (_body : Node3D ) -> void :
3434 if playing :
3535 stop ()
3636 stream = area_audio_type .touch_sound
3737 play ()
3838
3939
40- func _on_body_exited (_body ) :
40+ func _on_body_exited (_body : Node3D ) -> void :
4141 if playing :
42- stop ()
42+ stop ()
4343
4444
4545# This method checks for configuration issues.
4646func _get_configuration_warnings () -> PackedStringArray :
4747 var warnings := PackedStringArray ()
4848
49- if ! area_audio_type :
49+ if not area_audio_type :
5050 warnings .append ("Area audio type not specified" )
5151
5252 # Return warnings
You can’t perform that action at this time.
0 commit comments