뽑기 게임 재화를 다 쓴 상태에서 충전 중일 때 뽑기 화면을 벗어나면 시간이 감소되지 않습니다

This commit is contained in:
Ino 2025-11-07 14:56:23 +09:00
parent 0ee606d9c7
commit b80f5f5fad
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public class GachaUI : uScrollViewMgr
{
var cal = GachaAutoRefillTime - InternetTime.Ins.Time;
fRefillTime -= Time.deltaTime;
if (cal.TotalSeconds <= 0) fRefillTime = 0f;
texts[3].text = fRefillTime > 0f ? $"{fRefillTime:F2}s" : "0s";
var fRefillTimeMax = table_GlobalValue.Ins.Get_Float("GachaAutoRefill_DelayTime");
if (SaveMgr.Ins.GachaChargeTime_Reduce()) fRefillTimeMax -= fRefillTimeMax * 0.9f;
@ -61,6 +62,10 @@ public class GachaUI : uScrollViewMgr
texts_luckypoint[i].alpha = 0f;
Set_UI(false);
Init_GachaAnim();
var cal = GachaAutoRefillTime - InternetTime.Ins.Time;
if (cal.TotalMilliseconds > 0f)
fRefillTime = (float)cal.TotalMilliseconds * 0.001f;
}
void Set_UI(bool updateSlider)