Compare commits
2 Commits
1983a8099f
...
fe75aa3aa0
| Author | SHA1 | Date |
|---|---|---|
|
|
fe75aa3aa0 | |
|
|
b80f5f5fad |
|
|
@ -37,6 +37,7 @@ public class GachaUI : uScrollViewMgr
|
||||||
{
|
{
|
||||||
var cal = GachaAutoRefillTime - InternetTime.Ins.Time;
|
var cal = GachaAutoRefillTime - InternetTime.Ins.Time;
|
||||||
fRefillTime -= Time.deltaTime;
|
fRefillTime -= Time.deltaTime;
|
||||||
|
if (cal.TotalSeconds <= 0) fRefillTime = 0f;
|
||||||
texts[3].text = fRefillTime > 0f ? $"{fRefillTime:F2}s" : "0s";
|
texts[3].text = fRefillTime > 0f ? $"{fRefillTime:F2}s" : "0s";
|
||||||
var fRefillTimeMax = table_GlobalValue.Ins.Get_Float("GachaAutoRefill_DelayTime");
|
var fRefillTimeMax = table_GlobalValue.Ins.Get_Float("GachaAutoRefill_DelayTime");
|
||||||
if (SaveMgr.Ins.GachaChargeTime_Reduce()) fRefillTimeMax -= fRefillTimeMax * 0.9f;
|
if (SaveMgr.Ins.GachaChargeTime_Reduce()) fRefillTimeMax -= fRefillTimeMax * 0.9f;
|
||||||
|
|
@ -61,6 +62,10 @@ public class GachaUI : uScrollViewMgr
|
||||||
texts_luckypoint[i].alpha = 0f;
|
texts_luckypoint[i].alpha = 0f;
|
||||||
Set_UI(false);
|
Set_UI(false);
|
||||||
Init_GachaAnim();
|
Init_GachaAnim();
|
||||||
|
|
||||||
|
var cal = GachaAutoRefillTime - InternetTime.Ins.Time;
|
||||||
|
if (cal.TotalMilliseconds > 0f)
|
||||||
|
fRefillTime = (float)cal.TotalMilliseconds * 0.001f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Set_UI(bool updateSlider)
|
void Set_UI(bool updateSlider)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue