using UnityEngine;
using System.Collections;
[RequireComponent
(typeof(UIInput
))] [AddComponentMenu("/Scripts/MenuManager")]
public class MenuManager : MonoBehaviour {
public MenuManager instance;
public UIInput slots;
public UIInput matchname;
public string CurrentMenu;
public string MatchName = "";
public string MatchPassword = "";
public int MatchMaxPlayers = 32;
private string iptemp = "127.0.0.1";
private Vector2 ScrollLobby = Vector2.zero;
void Start(){
instance = this;
slots = GetComponent<UIInput>();
matchname = GetComponent<UIInput>();
//CurrentMenu = "Main";
}
void Update(){
MatchName = matchname.text;
int SlotNumber = int.Parse(slots.text);
MatchMaxPlayers = SlotNumber;
}
void FixedUpdate(){
instance = this;
}
}