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

public class SplashScreens : MonoBehaviour {

	public Sprite splashscreen2;
	float counter;

	// Use this for initialization
	void Start () {
		counter = 0;
	}
	
	// Update is called once per frame
	void Update () {
		counter += Time.deltaTime;

		if (counter > 4)
		{
			this.gameObject.GetComponent<SpriteRenderer> ().sprite = splashscreen2;
		}
		if (counter > 8)
		{
			SceneManager.LoadScene (1);
		}
	}
}
