﻿using UnityEngine;
using System.Collections;

public class SetStartVolume : MonoBehaviour {

	private MusicManager musicManager;

	// Use this for initialization
	void Start () {
		musicManager = GameObject.FindObjectOfType<MusicManager> ();
		if (musicManager) {
			float volume = PlayerPrefsManager.GetMasterVolume();
			musicManager.AdjustVolume(volume);
		} else {
			Debug.LogWarning ("Can't find music manager to set volume");
		}
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
