Commit Graph

5 Commits

Author SHA1 Message Date
6d89d9d48e fix: introduced assetbundles, instead of reading from folder
Reading Assets from folders was only possible in Editor over  LoadAssetFromPath. Now I'm using asset bundles for ScriptedObjects and Audio Prefabs, when the project is built.
When in Editor the folders are still used for convenience (can make changes to assets without rebuilding asset bundles)
2024-04-18 20:23:17 +02:00
a23b68cc51 feat: new ingame pause menu, with transition to main menu 2024-04-17 00:52:58 +02:00
6dc42a05cc feat: Apply an audio effect to every manageable audio on a gameobject
A new AudioManager Method triggers a signal which is received by every
ManageableAudio instance. If the causer of the signal is the same transform as the parent of the ManageableAudio, a change in AudioEffects is caused.
2024-04-13 15:56:20 +02:00
89970a7d1d feat: added basic ship sounds, pitch update method for manageable audio 2024-04-12 15:37:59 +02:00
5a658d6cd4 feat: audio management/playback features
Every sound in the game is now a ManageableAudio prefab.
The prefabs are picked up in an audio library automatically and other game objects
can get the sound they need from the AudioManager.
They obtain a ManageableAudio instance which offers various
methods to interact with the AudioSource.
Depending on how they request the ManageableAudio, the AudioSource
is attached to the requesting GameObject, to the Scene or the global management Scene.
This provides options to play sounds spatially, globally and scene independent.

The prefabs are identified by a tag and an ID, so it is easy to swap out sounds globally, by just replacing the prefab.
2024-04-10 16:57:25 +02:00