So i suppose you read the title. The thing is… i’m using a trigger and when the player (a ball) falls in it the game loads the level again. I made it so that the trigger emits a sound (which was stupid) but it plays it before the level loads again so i can’t even hear it. Here’s the code:
#pragma strict
function OnTriggerEnter (other : Collider) {
Application.LoadLevel("Level02");
audio.Play();
}
function Update () {
}
And i want to know how can i make it so this trigger still respawns the ball and i can hear the “Game Over” sound when it loads the level again. Help?