Пример #1
0
    public void RunMode(int mode, Card Tc)
    {
        Debug.Log(Tc);
        int Bonus = 0;

        switch (mode)
        {
        case 1:
            HandleTextFile.WriteLog((LogLine += 1) + " Action Log: Running Event", SName);
            pop.EnableEventCardPopup(Tc);
            pop.EnableBlockScreen(players[(turn + 1) % 4], ((turn + 1) % 4));
            RunEvent(ADeck, players, hands, dzones, ((EventQ)Tc));
            TurnOrder();
            if (PhotonNetwork.player.ID != turn + 1)
            {
                pop.EnableWaitScreen();
            }
            CheckForWinner();
            ToggleBoard(turn, 0);
            SetGlow(turn);
            AiTurn();
            break;

        case 2:
            HandleTextFile.WriteLog((LogLine += 1) + " Action Log: Running Quest", SName);
            QuestControl.CreateQuest(this, players, hands, turn, Tc, ADeck, Discard);
            break;

        case 3:
            Bonus = ((TournamentCard)Tc).bonusReward;
            ToggleBoard(turn, 1);
            TournementControler.CreateTournement(hands, players, ADeck, Discard, dzones, turn, this, Bonus, Tc);
            boardUI.SetActive(false);
            HandleTextFile.WriteLog((LogLine += 1) + " Action Log: Running Tournament", SName);
            break;

        default:
            Debug.Log("we are dead");
            break;
        }
    }