public void startHostButton()
 {
     networkLobbyManager.StartHost();
     //     networkLobbyManager.showLobbyGUI = true;
     networkInfo.SetActive(true);
     networkHUD.SetActive(false);
     lobbyGUI.SetActive(true);
     gameIsActive = true;
 }
Exemplo n.º 2
0
	// Use this for initialization
    void Start () 
    {
        lobbyManager = GameObject.Find("Lobby").GetComponent<MyNetworkLobbyManager>();

        MyNetworkLobbyManager.networkLobbyManagerInstance = lobbyManager;
        lobbyManager.showLobbyGUI = true;
        lobbyPlayerList = GameObject.Find("LobbyPlayerList");
        menu = transform.FindChild("LobbyUI").GetComponent<LobbyMenu>();
        startButton = GameObject.Find("StartButton");

        lobbyManager.showLobbyUI = true;
        if (ServerInfo.hosting)
        {
            lobbyManager.StartHost();
        }
        else
        {
            lobbyManager.networkAddress = ServerInfo.ip;
            client = lobbyManager.StartClient();
        }
	}
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        lobbyManager = GameObject.Find("Lobby").GetComponent <MyNetworkLobbyManager>();

        MyNetworkLobbyManager.networkLobbyManagerInstance = lobbyManager;
        lobbyManager.showLobbyGUI = true;
        lobbyPlayerList           = GameObject.Find("LobbyPlayerList");
        menu        = transform.FindChild("LobbyUI").GetComponent <LobbyMenu>();
        startButton = GameObject.Find("StartButton");

        lobbyManager.showLobbyUI = true;
        if (ServerInfo.hosting)
        {
            lobbyManager.StartHost();
        }
        else
        {
            lobbyManager.networkAddress = ServerInfo.ip;
            client = lobbyManager.StartClient();
        }
    }