예제 #1
0
    private void Start()
    {
        _blankCard   = Resources.Load <Texture>("Blank card");
        _rawImage    = GetComponent <RawImage>();
        _card        = _rawImage.texture;
        _costGO      = transform.GetChild(0).gameObject;
        _costTMP     = _costGO.transform.GetChild(0).GetComponentInChildren <TextMeshProUGUI>();
        _description = transform.GetChild(1).gameObject;

        _description.SetActive(false);

        AwakeningUpgradeController.Upgrade(upgradeType, this, false);
    }
예제 #2
0
 public void Buy()
 {
     AwakeningUpgradeController.Upgrade(upgradeType, this, true);
 }