Skip to content

Commit b790cbf

Browse files
authored
Better format Surface Audio (#766)
1 parent bb3f394 commit b790cbf

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

addons/godot-xr-tools/audio/surface_audio.gd

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,27 @@
33
class_name XRToolsSurfaceAudio
44
extends Node
55

6-
76
## XRTools Surface Audio Node
87
##
98
## This node is attached as a child of a StaticObject to give it a surface
109
## audio type. This will cause the XRToolsMovementFootStep to play the correct
1110
## foot-step sounds when walking on the object.
1211

13-
1412
## XRToolsSurfaceAudioType to associate with this surface
15-
@export var surface_audio_type : XRToolsSurfaceAudioType
13+
@export var surface_audio_type: XRToolsSurfaceAudioType
1614

1715

18-
# Add support for is_class on XRTools classes
19-
func is_xr_class(xr_name: String) -> bool:
16+
## Add support for is_class on XRTools classes
17+
func is_xr_class(xr_name: String) -> bool:
2018
return xr_name == "XRToolsSurfaceAudio"
2119

2220

23-
# This method checks for configuration issues.
21+
# Checks for configuration issues.
2422
func _get_configuration_warnings() -> PackedStringArray:
2523
var warnings := PackedStringArray()
2624

2725
# Verify the camera
28-
if !surface_audio_type:
26+
if not surface_audio_type:
2927
warnings.append("Surface audio type not specified")
3028

3129
# Return warnings

0 commit comments

Comments
 (0)