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

public class InstructionsScript : MonoBehaviour {

	public GameObject[] instructions;

	private int currentInstruction = 0;

	// Use this for initialization
	void Start () {
		for (int i = 0; i < instructions.Length; i++)
		{
			instructions [i].SetActive (false);
		}
		instructions [0].SetActive (true);
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	public void LoadLevel1()
	{
		SceneManager.LoadScene ("Level1");
	}

	public void DisplayNextIntruction()
	{
		instructions [currentInstruction].SetActive (false);
		currentInstruction++;
		instructions [currentInstruction].SetActive (true);

	}

	public void DisplayPreviousIntruction()
	{
		instructions [currentInstruction].SetActive (false);
		currentInstruction--;
		instructions [currentInstruction].SetActive (true);
	}
}
