// Use this for initialization
	void Awake () {
		Navigation = gameObject.GetComponent<G1_PuzzleNavigation> ();
		Puzzle=GameObject.Instantiate (puzzlePref,Vector3.zero,Quaternion.identity) as GameObject;
		SignValue=PlayerPrefs.GetInt("G1_Puzzle_Sign");
		MaxRange=PlayerPrefs.GetInt("G1_Puzzle_MaxRange");
		Puzzle.transform.position=new Vector3 (-21, 0,3.63f);
	}
	void Awake()
	{
		_musicPlaybackSource = gameObject.AddComponent<AudioSource>();
		_musicPlaybackSource.playOnAwake = false;
		_musicPlaybackSource.loop = true;
		_musicPlaybackSource.volume = MusicVolume;
		_musicPlaybackSource.clip = BackgroundMusic;
		if (BackgroundMusic != null)
			_musicPlaybackSource.Play();

		_sfxPlaybackSource = gameObject.AddComponent<AudioSource>();
		_sfxPlaybackSource.playOnAwake = false;
		_sfxPlaybackSource.loop = false;
		_sfxPlaybackSource.volume = SFXVolume;
		Navigation = GameObject.Find ("Main Camera").GetComponent<G1_PuzzleNavigation> ();
	}