Example #1
0
    public void OnPlayClick()
    {
        bool isSinglePlayer = GameController.Instance.IsSinglePlayer();

        if (isSinglePlayer)
        {
            SceneController.Instance.OnStartGame();
        }
        else
        {
            LobbyPlayer lobbyPlayer = LobbyPlayerList._instance.GetLocalLobbyPlayer();
            lobbyPlayer.isPrepared = true;
            lobbyPlayer.CmdCharacterChanged(m_SelectedIndex);

            LobbyManager.s_Singleton.GetComponent <Canvas>().enabled = true;
            SceneController.Instance.UnloadCharacterSelectionMenu();
        }
    }