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

public class PlayCutScene : MonoBehaviour {

	//public Camera camera1;
	//public Camera camera2;

	//// Use this for initialization
	//void Start () {
 //       //camera1 = GetComponentInChildren<Camera>();
 //       //camera2 = GameObject.Find("CameraCutscenes").GetComponentInChildren<Camera>();
 //       GameObject.Find("SportyGirl").GetComponent<PlayerController>().enabled = false;
	//	GameObject.Find("SportyGirl").GetComponent<MovementController>().enabled = false;
 //       GameObject.Find("SportyGirl").transform.GetChild(2).GetComponent<SkinnedMeshRenderer>().enabled = false;
 //       camera2.enabled = true;
 //       camera1.enabled = false;
	//	camera2.GetComponent<Animator>().Play("CutsceneEnigme2camera2");
 //       StartCoroutine("goBack");
 //   }



 //   IEnumerator goBack()
 //   {
 //       yield return new WaitForSeconds(4f);
 //       camera2.GetComponent<Animator>().enabled = false;
 //       camera2.enabled = false;
 //       camera1.enabled = true;
 //       GameObject.Find("SportyGirl").transform.GetChild(2).GetComponent<SkinnedMeshRenderer>().enabled = true;
 //       GameObject.Find("SportyGirl").GetComponent<PlayerController>().enabled = true;
 //       GameObject.Find("SportyGirl").GetComponent<MovementController>().enabled = true;
 //   }
	
	//// Update is called once per frame
	//void Update () {
		
	//}
}
