Exemplo n.º 1
0
    public void OnBuyClick()
    {
        _clickCount   += 1;
        showCoinNumber = 5 * _clickCount >= 15 ? MAXCount : 5 * _clickCount;
        GameData.Instance.ChangeCoinsData(5 * _clickCount);

        callback = () =>
        {
            CoinCollectionAnim.ShowCollectionAnim(fromTransform, targetTransform, coinPrefab,
                                                  coinsCount, showCoinNumber);
        };

        _openChestDialog.Init(showCoinNumber, callback);
    }
 public void OnBgClick()
 {
     CoinCollectionAnim.ShowCollectionAnim(fromTransform, targetTransform, coinPrefab, coinsCount, showCoinNumber);
     showChestDialog.SetActive(false);
 }