improved looping of mainbgm
This commit is contained in:
parent
b2c9d35b2e
commit
2040d885aa
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue