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); }
public void Buy() { AwakeningUpgradeController.Upgrade(upgradeType, this, true); }