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

public class SpinToWin : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if (!Input.GetMouseButton(0) && (transform.rotation.eulerAngles.z < 240 || transform.rotation.eulerAngles.z > 300)){
			SceneManager.LoadScene ("SampleScene", LoadSceneMode.Single);
		}
	}
}
