Exemple #1
0
    public void HandlePanels(Panel currentPanel)
    {
        switch (currentPanel)
        {
        case Panel.MainMenu:
            LobbyMainMenu.Show();
            break;

        case Panel.CampaignMenu:
            CampaignMenu.Show();
            break;

        case Panel.InGame:
            ShowTopMenu(false);
            ShowBottomMenu(false);
            BattleHUD.Show();
            return;

        case Panel.LeaderBoards:
            Leaderboard.Show();
            break;

        case Panel.ArmyPanel:
            CardCollectionMenu.Show();
            break;

        case Panel.TasksPanel:
            TasksMenu.Show();
            break;

        case Panel.ShopPanel:
            IAPPanel.Show();
            break;

        case Panel.SocialPanel:
            SocialPanel.Show();
            break;

        default:
            LobbyMainMenu.Show();
            break;
        }
    }