Example #1
0
 public void ExitObserveMatch()
 {
     northHand.Hide();
     southHand.Hide();
     SetMatchUIActive(false);
     isSpectating = false;
 }
Example #2
0
 public void ExitResultScreen()
 {
     humanHand.gameObject.SetActive(false);
     northHand.Hide();
     SetMatchUIActive(false);
     if (player.stars == 0)
     {
         EndMatchPanel panel = GameObject.Instantiate <EndMatchPanel>(endMatchPanelPrefab);
         panel.transform.SetParent(this.transform, false);
         panel.SetText("You have no stars left! Wait until the game ends...");
     }
     else if (player.stars > 0 && player.CardCount() == 0)
     {
         EndMatchPanel panel = GameObject.Instantiate <EndMatchPanel>(endMatchPanelPrefab);
         panel.transform.SetParent(this.transform, false);
         panel.SetText("You've won the game, wait until the end of collect your prize!");
     }
 }
Example #3
0
 public void Hide()
 {
     _ResourceUI.Hide();
     _ArmyUI.Hide();
     _HandUI.Hide();
     //show the card ui if there is a selected card
     if (_HandUI.m_SelectedCardUI != null)
     {
         _CardDisplayUI.Show();
     }
 }