1
0
Fork 0

improved looping of mainbgm

This commit is contained in:
Himusoka 2018-04-23 19:47:00 +02:00
parent b2c9d35b2e
commit 2040d885aa

View file

@ -13,14 +13,15 @@ public class AudioControl : MonoBehaviour
public enum Sfx { shoot, explosion, mobattack, door, faster, slower, driving, slowdriving }; 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 gobgm = 14.406f;
private const float loopdelay = 0.05f; private const float loopdelay = 0.025f;
private bool menu; private bool menu;
// Use this for initialization // Use this for initialization
void Start() void Start()
{ {
maintheme.time = maintheme.clip.length - 3.0f;
maintheme.loop = true; maintheme.loop = true;
menutheme.loop = true; menutheme.loop = true;
gameovers.loop = true; gameovers.loop = true;