Inheritance: MonoBehaviour
Exemplo n.º 1
0
    public new void GoBack()
    {
        Destroy(castSearchAnimation);
        LocalGameFinder localGameFinder = GameObject.FindObjectOfType <LocalGameFinder>();

        localGameFinder.StopBroadCasting();
        base.GoBack();
    }
Exemplo n.º 2
0
    public void OnRemoteDisplaySessionStart(CastRemoteDisplayManager manager)
    {
        // Start hosting and join lobby.
        Destroy(castSearchAnimation);
        LocalGameFinder localGameFinder = GameObject.FindObjectOfType <LocalGameFinder>();

        localGameFinder.StartBroadCasting();
        GameNetworkManager networkManager = GameObject.FindObjectOfType <GameNetworkManager>();

        networkManager.StartHost();
        SceneManager.LoadScene("LobbyScene");
    }
Exemplo n.º 3
0
    public void CloseLobby()
    {
        CastRemoteDisplayManager castDisplayManager = CastRemoteDisplayManager.GetInstance();

        if (castDisplayManager.IsCasting())
        {
            castDisplayManager.StopRemoteDisplaySession();
        }
        gameNetworkManager.StopHost();
        LocalGameFinder localGameFinder = GameObject.FindObjectOfType <LocalGameFinder>();

        localGameFinder.StopBroadCasting();
        SceneManager.LoadScene("MainMenuScene");
    }