This reverts commit a6846bb41deea026602bc2f4cf3da9ffbcbba94b, reversing changes made to c8f59a7080b2b2896248c04952ae9383a54f0ddf.
26 lines
541 B
C#
26 lines
541 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CoinUITestScript : MonoBehaviour
|
|
{
|
|
[SerializeField] private CoinsPanelController coinsPanelController;
|
|
|
|
public void OnClickAddCoin()
|
|
{
|
|
coinsPanelController.AddCoins(100, () =>
|
|
{
|
|
Debug.Log("Add coin 후 동작");
|
|
});
|
|
}
|
|
|
|
public void OnClickRemoveCoin()
|
|
{
|
|
coinsPanelController.RemoveCoins(() =>
|
|
{
|
|
Debug.Log("코인을 제거한 후 동작");
|
|
});
|
|
}
|
|
|
|
}
|