Batch 1 - Scripts

This commit is contained in:
Rohan
2026-07-21 08:58:18 +05:30
parent 604c0c786a
commit 1dcd8bf80b
41 changed files with 655 additions and 13 deletions

View File

@@ -0,0 +1,27 @@
using TMPro;
using UnityEngine;
using System.Collections;
public class CashPopupUI : MonoBehaviour
{
[SerializeField] private TextMeshProUGUI amountText;
public void Show(int amount)
{
amountText.text = $"+${amount:N0}";
AudioManager.Instance?.PlaySFX("CashPopup");
gameObject.SetActive(true);
StopAllCoroutines();
StartCoroutine(HideRoutine());
}
IEnumerator HideRoutine()
{
yield return new WaitForSeconds(1.5f);
gameObject.SetActive(false);
}
}