1
0
forked from cgvr/DeltaVR

add sound effects to button, mic stand, model generation, shape scanner

This commit is contained in:
2026-01-25 15:10:42 +02:00
parent 75bd66fc36
commit ec45c402af
8 changed files with 32 additions and 4 deletions

View File

@@ -97,6 +97,8 @@ public class ShapeScanner : MonoBehaviour
rayCount = configuration.rows.SelectMany(row => row.cells).Count();
correctRayStates = configuration.rows.SelectMany(row => row.cells).Count(cell => !cell);
UpdateDisplay(calculateCorrectPercentage());
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.ShapeScannerSuccess, gameObject);
}
private float calculateCorrectPercentage()