Exemplo n.º 1
0
    public void Disconnect()
    {
        JigsawNetworkManager netManager = FindObjectOfType <JigsawNetworkManager>();

        if (StaticJigsawData.IsHost)
        {
            if (netManager.IsClientConnected())
            {
                netManager.StopHost();
            }
        }
        else
        {
            if (netManager.IsClientConnected())
            {
                netManager.StopClient();
            }
        }
    }
Exemplo n.º 2
0
    public void StartClient()
    {
        JigsawNetworkManager netManager = FindObjectOfType <JigsawNetworkManager>();

        netManager.StartJigsawClient();
    }