mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 18:43:43 +00:00
feat(audio): connect ball impacts to feedback
This commit is contained in:
@@ -183,6 +183,7 @@ func spawn_camera_rig(target: Ship) -> ShipCameraRig:
|
||||
var rig: ShipCameraRig = CAMERA_RIG_SCENE.instantiate()
|
||||
add_child(rig)
|
||||
_camera_rig = rig
|
||||
rig.impact_feedback.connect(AudioManager.play_impact)
|
||||
rig.target = target
|
||||
# Also wires the scene's static HUD (if any) to the same ship, rather
|
||||
# than letting it guess via the "ship" group.
|
||||
|
||||
Reference in New Issue
Block a user