using UnityEngine;
using System.Collections;

public class WinConScript : MonoBehaviour {

	public GameObject play1Wins, play2Wins, winQuote;
	public bool gameWon = false;
	public GameObject menuButton;

	public void gameEnds(int playerID){
		if (gameWon == false) {
						if (playerID == 1) {
								Instantiate (play1Wins, new Vector3 (0.0f, 15.0f, 0.0f), transform.rotation);
						} else if (playerID == 2) {
								Instantiate (play2Wins, new Vector3 (0.0f, 15.0f, 0.0f), transform.rotation);	
						}
	
						Instantiate (winQuote, new Vector3 (0.0f, -8.0f, 0.0f), transform.rotation);
						Instantiate (menuButton, new Vector3(0.0f, -25.0f, 0.0f), transform.rotation);
						gameWon = true;
		}
	}

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		/*if (Input.GetKeyDown (KeyCode.Space))
						gameEnds (1);*/
	
	}
}
