sound (start)

This commit is contained in:
orsolya-st
2026-06-07 00:37:28 +02:00
parent 95e381c2c7
commit 549cf62ac6
2 changed files with 46 additions and 1 deletions
@@ -130,6 +130,7 @@ GameObject:
- component: {fileID: 709184035} - component: {fileID: 709184035}
- component: {fileID: 709184034} - component: {fileID: 709184034}
- component: {fileID: 709184033} - component: {fileID: 709184033}
- component: {fileID: 709184036}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@@ -211,6 +212,50 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &709184036
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 709184032}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.UniversalAdditionalCameraData
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_ClearDepth: 1
m_AllowXRRendering: 1
m_AllowHDROutput: 1
m_UseScreenCoordOverride: 0
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
m_Version: 2
--- !u!1660057539 &9223372036854775807 --- !u!1660057539 &9223372036854775807
SceneRoots: SceneRoots:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+1 -1
View File
@@ -23,7 +23,7 @@ public class StartScene : MonoBehaviour
mySpeaker.PlayOneShot(jingle); mySpeaker.PlayOneShot(jingle);
// 2. Wait for the length of the sound clip (or a fixed time) // 2. Wait for the length of the sound clip (or a fixed time)
yield return new WaitForSeconds(jingle.length - 0.5f); yield return new WaitForSeconds(0.4f);
// 3. Now it is safe to load the scene // 3. Now it is safe to load the scene
SceneManager.LoadScene(0, LoadSceneMode.Single); SceneManager.LoadScene(0, LoadSceneMode.Single);