private void Awake() { _controller = FindObjectOfType <UpgradeStoreController>(); buyButton.onClick.AddListener(() => { UpgradeStoreController.Unlock(type, _level, _unlockPrice); }); }
private void OnClick() { UpgradeStoreController.Unlock(type, _level, _unlockPrice); }