// Use this for initialization
    void Start () {
        anim = GetComponentInChildren<Animator>();
        if (audioHandler == null) audioHandler = GameObject.Find("AudioHandler").GetComponent<AudioHandler>();
        Oldmouseloc = Input.mousePosition;
		controllmethod = Controllmethod.Controller;
		ProgressBar progresbar = progressbar.GetComponent<ProgressBar> ();
		progresbar.DisableBar ();
	}
	void ControllCheck()
	{
		switch (controllmethod) {
		case Controllmethod.Controller:
			if (MouseCheck ()) {
				controllmethod = Controllmethod.Mouse;
				Debug.Log ("siirrtyaan hiireen");
			}
			break;
		case Controllmethod.Mouse:
			if (ControllerCheck ()) {
				Debug.Log ("siirrytaan ohjaimeen");
				controllmethod = Controllmethod.Controller;
			}
			break;

		}
		
	}