コード例 #1
0
 public void startHostButton()
 {
     networkLobbyManager.StartHost();
     //     networkLobbyManager.showLobbyGUI = true;
     networkInfo.SetActive(true);
     networkHUD.SetActive(false);
     lobbyGUI.SetActive(true);
     gameIsActive = true;
 }
コード例 #2
0
ファイル: Lobby.cs プロジェクト: zeropointx/KartClone
	// 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();
        }
	}
コード例 #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();
        }
    }