music setup

This commit is contained in:
OliverS 2024-02-04 08:40:08 +01:00
parent 6690ff0b44
commit 0a142cffbc
8 changed files with 101 additions and 7 deletions

View File

@ -24,10 +24,8 @@ MonoBehaviour:
- {fileID: 8300000, guid: fb0ae77bbbd11e64fa44bb6e23071458, type: 3}
- {fileID: 8300000, guid: 3a67073d446ad0c4eaebc3e828cab46b, type: 3}
- {fileID: 8300000, guid: 3c5f4ff19d63cc8458b6acb0756192ab, type: 3}
- {fileID: 8300000, guid: fa96879f1e5773e4aa5ba67c98756caf, type: 3}
- {fileID: 8300000, guid: bd37e0997c3891d41960e3d4a2820944, type: 3}
- {fileID: 8300000, guid: 15abfea15ac15c94bb6ac7814c5304b8, type: 3}
- {fileID: 8300000, guid: 1199ff79c1f3044478a1d7fb88f09f20, type: 3}
- {fileID: 8300000, guid: 2680edc40e917f24fb02c267f4eab914, type: 3}
- {fileID: 8300000, guid: b6ec2727446618b44b5af3a511e5e1b1, type: 3}
- {fileID: 8300000, guid: 26c6aabbabe544f45b385c0e978c35ff, type: 3}

View File

@ -2519,10 +2519,30 @@ PrefabInstance:
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 7301411897347746173, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
insertIndex: -1
addedObject: {fileID: 4158834148864819268}
- targetCorrespondingSourceObject: {fileID: 203935764274243221, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
insertIndex: -1
addedObject: {fileID: 872164355}
m_SourcePrefab: {fileID: 100100000, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
--- !u!1 &4158834148864819267 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7301411897347746173, guid: 48e0e53445d42474895d37a321c39d1c, type: 3}
m_PrefabInstance: {fileID: 4158834148864819266}
m_PrefabAsset: {fileID: 0}
--- !u!114 &4158834148864819268
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4158834148864819267}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 94eb4529510a25d448334415d28e7fa4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &4910321061857220295
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -665,7 +665,7 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 0.7647059}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
@ -686,7 +686,19 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 398610165}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 1304688536}
m_TargetAssemblyTypeName: QuitGame, Assembly-CSharp
m_MethodName: Quit
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &398610165
MonoBehaviour:
m_ObjectHideFlags: 0
@ -1390,6 +1402,7 @@ GameObject:
- component: {fileID: 1304688534}
- component: {fileID: 1304688533}
- component: {fileID: 1304688532}
- component: {fileID: 1304688536}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
@ -1492,6 +1505,18 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!114 &1304688536
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1304688531}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 858666303fe5d464a806d086b87f5c30, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1526912310
GameObject:
m_ObjectHideFlags: 0
@ -1554,7 +1579,7 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 0.7647059}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}

View File

@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IngameMusic : MonoBehaviour
{
void Start()
{
AudioManager.PlaySound("Intro_Flatline", new Vector3(0f, 0f, 0f), false, false).volume = 1f;
Invoke("PlayMusic", 3);
}
void PlayMusic()
{
AudioManager.PlaySound("Ingame_Theme", new Vector3(0f, 0f, 0f), false, false, true, true).volume = 1f;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 94eb4529510a25d448334415d28e7fa4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -27,8 +27,8 @@ public class MainMenuTransitionAnimation : MonoBehaviour
yield return new WaitForSecondsRealtime(0.1f);
}
AudioManager.StopAllAudio();
SceneManager.LoadScene(1);
//SceneManager.sceneLoaded += () => AudioManager.Instance.
//SceneManager.sceneLoaded += () => AudioManager.stop
}
}

View File

@ -0,0 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuitGame : MonoBehaviour
{
public void Quit()
{
Application.Quit();
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 858666303fe5d464a806d086b87f5c30
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: