2024-12-15 01:39:39 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class TopMoney : MonoBehaviourSingletonTemplate<TopMoney>
|
|
|
|
|
{
|
|
|
|
|
public MoneyForm[] moneys; // 0 젬, 1 골드
|
|
|
|
|
|
|
|
|
|
private void OnEnable()
|
|
|
|
|
{
|
2025-03-06 07:47:57 +00:00
|
|
|
StartCoroutine(Co_Update());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IEnumerator Co_Update()
|
|
|
|
|
{
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
|
Set();
|
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
|
|
|
}
|
2024-12-15 01:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Set()
|
|
|
|
|
{
|
|
|
|
|
moneys[0].Set(1);
|
|
|
|
|
moneys[1].Set(2);
|
|
|
|
|
}
|
|
|
|
|
}
|