DO-51 [Fix] 코인값이 적용되지 않던 버그 수정
This commit is contained in:
parent
0c3c280882
commit
04125f848c
@ -122,6 +122,7 @@ public class CoinsPanelController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
sequence.OnComplete(() =>
|
sequence.OnComplete(() =>
|
||||||
{
|
{
|
||||||
|
_coinsCount += coinsCount; //추가된 코인 적용
|
||||||
_canvasGroup.blocksRaycasts = true; //구매 후 클릭 활성화
|
_canvasGroup.blocksRaycasts = true; //구매 후 클릭 활성화
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -162,7 +163,9 @@ public class CoinsPanelController : MonoBehaviour
|
|||||||
coinsRemoveImageObject.GetComponent<Image>().DOFade(0f, 1f)
|
coinsRemoveImageObject.GetComponent<Image>().DOFade(0f, 1f)
|
||||||
.OnComplete( ()=>ChangeTextAnimation(false, ()=>
|
.OnComplete( ()=>ChangeTextAnimation(false, ()=>
|
||||||
{
|
{
|
||||||
// TODO: 코인 수량 감소
|
//감소된 코인 적용
|
||||||
|
_coinsCount -= 100;
|
||||||
|
|
||||||
// GameManager.Instance.CoinsCount--;
|
// GameManager.Instance.CoinsCount--;
|
||||||
action?.Invoke();
|
action?.Invoke();
|
||||||
})); // 텍스트 떨어지는 연출
|
})); // 텍스트 떨어지는 연출
|
||||||
|
Loading…
x
Reference in New Issue
Block a user