Beispiel #1
0
 public UIPlayer(GameTable gameTable, MonoPlayer player)
     : base(gameTable)
 {
     unityPlayer  = player;
     biddingPopup = GameObject.FindGameObjectWithTag("MENUS").transform.FindChild("BiddingPopup").GetComponent <BiddingPopup>();
     uiDeck       = GameObject.FindGameObjectWithTag("DECK").GetComponent <UIDeck>();
 }
Beispiel #2
0
    public static void CleanTable()
    {
        TurnArrowController.TurnArrowOff();
        TrumpSelection.Hide();
        ScoreBoard.Hide();
        staticGameTable.SetGameState(Common.Enums.GameState.INLOBBY);
        Game.Actors.ScoreBoard.ResetScores();
        BiddingPopup.Hide();
        CurrentTrump.currentTrumpActive = false;
        UserInteraction.InputActive     = false;

        foreach (Transform card in GameObject.FindGameObjectWithTag("DECK").transform)
        {
            if (!card.name.Contains("Card"))
            {
                Destroy(card.gameObject);
            }
        }

        PlayedCardsController.Cards[0].gameObject.SetActive(false);
        PlayedCardsController.Cards[1].gameObject.SetActive(false);
        PlayedCardsController.Cards[2].gameObject.SetActive(false);
        PlayedCardsController.Cards[3].gameObject.SetActive(false);

        PlayedCardsController.playedCardCount = 0;
    }