From 2040d885aaaf0ec3c0b0e87e3b5b45fa2484a894 Mon Sep 17 00:00:00 2001 From: Himusoka Date: Mon, 23 Apr 2018 19:47:00 +0200 Subject: [PATCH] improved looping of mainbgm --- Assets/Scripts/AudioControl.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/AudioControl.cs b/Assets/Scripts/AudioControl.cs index 8575847..85e92d1 100644 --- a/Assets/Scripts/AudioControl.cs +++ b/Assets/Scripts/AudioControl.cs @@ -13,14 +13,15 @@ public class AudioControl : MonoBehaviour public enum Sfx { shoot, explosion, mobattack, door, faster, slower, driving, slowdriving }; - private const float lvlbgm = 5.759f; + private const float lvlbgm = 5.725f; private const float gobgm = 14.406f; - private const float loopdelay = 0.05f; + private const float loopdelay = 0.025f; private bool menu; // Use this for initialization void Start() { + maintheme.time = maintheme.clip.length - 3.0f; maintheme.loop = true; menutheme.loop = true; gameovers.loop = true;