using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioManager : MonoBehaviour {
	public AudioSource[] audiosource;
    // Use this for initialization

    private static AudioManager instance;
    public static AudioManager Instance
    {
        get
        {
            return instance;
        }
    }
    public void Play(AudioClip audioclip){
		audiosource[0].clip= audioclip;
        audiosource[0].Play();
        AudioSource temp = audiosource[0];
		audiosource[0]=audiosource[1];
		audiosource[1]=audiosource[2];
		audiosource[2]=audiosource[3];
		audiosource[3]=audiosource[4];
		audiosource[4]= temp;

    }
	void Start () {
        instance = this;	
	}
}
