h5sdk提交

This commit is contained in:
2026-07-06 16:31:08 +08:00
parent 761e670f01
commit 3c0298f19f
1183 changed files with 107360 additions and 42666 deletions
@@ -98,6 +98,9 @@ namespace BingoBrain
ui.com_Spinn.SetClick(ClickSpinBtn);
ui.fairyBatching = false;
Hall.Instance.UpdateSecondEvent += UpdateTime;
GameHelper.LoadSceneAsync(1);
GameObject.Find("[ Bingo ]").SetActive(false);
}
private void UpdateTime()
@@ -132,6 +135,7 @@ namespace BingoBrain
item.quantityA[GameHelper.GetDynamicIndex(item.wheel_itemA)]);
PreferencesMgr.Instance.VidelWheelLst.Add(
item.quantityB[GameHelper.GetDynamicIndex(item.wheel_itemB)]);
Debug.Log(GameHelper.GetDynamicIndex(item.wheel_itemB));
}
PreferencesMgr.Instance.SaveFerrWheelLst();
@@ -147,6 +151,10 @@ namespace BingoBrain
RefreshUI();
ui.cont_state.selectedIndex =
PreferencesMgr.Instance.IsOnceWheel ? com_wheel.State_normal : com_wheel.State_videl;
if (!PreferencesMgr.Instance.IsOnceWheel && ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1)
{
ui.btn_spin.saveing_open.selectedIndex = 1;
}
}
private void RefreshUI(object o = null)
@@ -163,20 +171,29 @@ namespace BingoBrain
if (PreferencesMgr.Instance.IsOnceWheel)
{
id = turntable.wheel_itemA;
val = id == 102
? GameHelper.Get102Str((decimal)PreferencesMgr.Instance.FerrWheelLst[i])
: PreferencesMgr.Instance.FerrWheelLst[i].ToString();
if (id == 102)
{
val = GameHelper.isRDExchangeMode() ? $"{PreferencesMgr.Instance.FerrWheelLst[i]:N}" : GameHelper.Get102Str((decimal)PreferencesMgr.Instance.FerrWheelLst[i]);
}
else val = PreferencesMgr.Instance.FerrWheelLst[i].ToString();
}
else
{
id = turntable.wheel_itemB;
if(id == 101)
if (id == 101)
{
PreferencesMgr.Instance.VidelWheelLst[i]=MathF.Ceiling(PreferencesMgr.Instance.VidelWheelLst[i]);
PreferencesMgr.Instance.VidelWheelLst[i] = MathF.Ceiling(PreferencesMgr.Instance.VidelWheelLst[i]);
}
val = id == 102
? GameHelper.Get102Str((decimal)PreferencesMgr.Instance.VidelWheelLst[i])
: PreferencesMgr.Instance.VidelWheelLst[i].ToString();
if (id == 102)
{
val = GameHelper.isRDExchangeMode() ? $"{PreferencesMgr.Instance.VidelWheelLst[i]:N}" : GameHelper.Get102Str((decimal)PreferencesMgr.Instance.VidelWheelLst[i]);
}
else val = PreferencesMgr.Instance.VidelWheelLst[i].ToString();
// val = id == 102
// ? GameHelper.Get102Str((decimal)PreferencesMgr.Instance.VidelWheelLst[i])
// : PreferencesMgr.Instance.VidelWheelLst[i].ToString();
}
rewards.cont_currency.selectedIndex = id switch
@@ -267,10 +284,10 @@ namespace BingoBrain
NAAVsa.PlayAnim(wheel_ani, "daiji", true);
if (PreferencesMgr.Instance.IsOnceWheel)
{
// ui.closeButton.touchable = false;
// ui.btn_spin.touchable = false;
// ui.closeButton.touchable = false;
// ui.btn_spin.touchable = false;
ui.com_Spinn.touchable = false;
// ui.btn_spin.grayed = true;
// ui.btn_spin.grayed = true;
GameHelper.GetRewardExtra(vo.wheel_itemA, (decimal)PreferencesMgr.Instance.FerrWheelLst[vo.Seq - 1],
vo.cont_index, isCompleted =>
@@ -285,6 +302,10 @@ namespace BingoBrain
ui.cont_state.selectedIndex = PreferencesMgr.Instance.IsOnceWheel
? com_wheel.State_normal
: com_wheel.State_videl;
if (!PreferencesMgr.Instance.IsOnceWheel && ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1)
{
ui.btn_spin.saveing_open.selectedIndex = 1;
}
SetWheelData();
RefreshUI();
ui.fx_enter.Play();