+ 상호작용 오브젝트 외곽선 기능 추가 + 손님 계산 기능 추가 + 손님 계산 시 Ui 출력 및 파티클, 효과 추가 + 대화 시스템 로직 수정 + 테이블 수정 + 캐릭터 스파인 교체
29 lines
610 B
C#
29 lines
610 B
C#
using DG.Tweening;
|
|
using Sirenix.OdinInspector;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWater.Uis
|
|
{
|
|
public class PayMoneyUi : MonoBehaviour
|
|
{
|
|
[SerializeField, Required]
|
|
private DOTweenAnimation _moveAnimation;
|
|
|
|
[SerializeField, Required]
|
|
private TMP_Text _goldText;
|
|
|
|
private void OnDestroy()
|
|
{
|
|
_moveAnimation.DOKill();
|
|
}
|
|
|
|
public void PayMoney(int gold)
|
|
{
|
|
gameObject.SetActive(true);
|
|
_moveAnimation.DORestart();
|
|
|
|
_goldText.text = gold.ToString("N0");
|
|
}
|
|
}
|
|
} |