コード例 #1
0
 public void ConfigDefaultCard(string s, int a, GameController_script gc)
 {
     SetLinks();
     _cardAbilityInfo = gc.GetComponent <CardAbilityInfoManager_script>();
     CardInfo         = s;
     _ability         = _cardAbilityInfo.GetAbilityInfo(CardInfo);
     _infoText.text   = _ability;
     //SetValuesAndAbility(s);
     //CheckAbilities();
     _cardHolder = _defaultCard.transform.parent;
     CreatNewCard(a);
 }
コード例 #2
0
    void Start()
    {
        _cardAbilityInfo  = GameController.GetComponent <CardAbilityInfoManager_script>();
        _uiManager        = GameController.GetComponent <UIManager_script>();
        _refreshPriceText = transform.GetChild(3).GetComponent <TextMeshProUGUI>();
        _refreshButton    = transform.GetChild(2).GetChild(0).GetComponent <Button>();

        _cardHolder = transform.GetChild(1);
        //DefaultCard = _cardHolder.GetChild(0).gameObject;
        NewShop                = true; //new shop after each game?
        _activePrice           = StartingPrice;
        _refreshPriceText.text = _activePrice.ToString("F0") + " Credits";
    }