Пример #1
0
 void ToGame()
 {
     this.gameObject.SetActive(false);
     //UiManager.CardSelectionScreen.SetActive(true);
     UiManager.DeactiveGameUI();
     UiManager.PreGameScreen.SetActive(true);
     UiManager.UpdatePlayerInfoBar();
 }
Пример #2
0
    public void BuyCard(int index)
    {
        PlayerInfoManager.AddNewCard(CurrentShop[index].CardInfo, CurrentShop[index].CardPrice);

        CurrentShop[index].PlayCard.gameObject.SetActive(false);
        CurrentShop[index].PlayCard.transform.parent.parent.GetChild(4).gameObject.SetActive(true);
        CurrentShop[index].BuyButton.interactable = false;
        _uiManager.UpdatePlayerInfoBar();
    }
Пример #3
0
 public void ModifyCredits(int credits)
 {
     Credits += credits;
     UiManager.UpdatePlayerInfoBar();
     SavePlayerInfo();
 }