/*
 * FinalMusicScript.cs
 * 
 * Holds the Audio clip to be played at the win screen
 * 
 * Created for 2011 Global Game Jam
 */

using UnityEngine;
using System.Collections;

public class FinalMusicScript : MonoBehaviour 
{
    // Inspector Variables
    public AudioClip clip;      // the audio clip for the win screen music

    public GameObject global;

	// Use this for initialization
	void Start () 
    {
	
	}
	
	// Update is called once per frame
	void Update () 
    {
        // if the music is not playing
        if (!transform.audio.isPlaying)
        {
            transform.audio.Play();     // play the music
        }
	}
}
