using UnityEngine;
using System.Collections;



public class GUIMenu : MonoBehaviour {
	
	 private NetworkServer ns = new NetworkServer();
	private NetworkClient nc = new NetworkClient();
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI () {
		
		//GUI.Box (new Rect (0,0,100,50), "Top-left");
		//GUI.Box (new Rect (Screen.width - 100,0,100,50), "Top-right");
		
		if (ns.ServerStarted) {
		GUI.Box (new Rect (0,Screen.height - 50,100,50), "Server Started");
		}
		else {
			//GUI.Box (new Rect (0,Screen.height - 50,100,50), "Server not Started");
		}
		
		
		//GUI.Box (new Rect (Screen.width - 100,Screen.height - 50,100,50), "Bottom-right");
		
		
		if (GUI.Button (new Rect (10,10,150,100), "Start Server")) {
		
			
			

			
			
ns.StartServer();
			
		}
	}

}
