This commit is contained in:
OliverS 2024-02-04 08:16:54 +01:00
parent d75a0c74a6
commit 5367994b77
6 changed files with 10 additions and 48 deletions

View File

@ -1,23 +0,0 @@
fileFormatVersion: 2
guid: fa96879f1e5773e4aa5ba67c98756caf
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -1,23 +0,0 @@
fileFormatVersion: 2
guid: 1199ff79c1f3044478a1d7fb88f09f20
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -6,6 +6,13 @@ public class MainMenuMusic : MonoBehaviour
{
void Start()
{
AudioManager.PlaySound("", new Vector3(0f, 0f, 0f)).volume = 1f;
AudioManager.PlaySound("Menu_Whistle_Intro", new Vector3(0f, 0f, 0f)).volume = 1f;
Invoke("PlayMusic", 10);
}
void PlayMusic()
{
AudioManager.PlaySound("Menu_Theme", new Vector3(0f, 0f, 0f), false, true, true, true).volume = 1f;
}
}

View File

@ -29,5 +29,6 @@ public class MainMenuTransitionAnimation : MonoBehaviour
SceneManager.LoadScene(1);
//SceneManager.sceneLoaded += () => AudioManager.Instance.
}
}