取消金币

This commit is contained in:
2026-07-14 18:19:43 +08:00
parent 1f4c215d59
commit 2d1c510ae0
15 changed files with 197 additions and 161 deletions
+19 -19
View File
@@ -298,7 +298,7 @@ public class ShowScrews : MonoBehaviour, ICanvasRaycastFilter
public void InitAllLeveData()
{
int conf_num = PlayerPrefs.GetInt("game_conf_num", 1);
// Debug.Log(conf_num);
// Debug.Log(conf_num);
// Debug.Log(PlayerPrefs.GetInt("game_conf_num", 1));
if (conf_num == 2)
{
@@ -1508,30 +1508,30 @@ public class ShowScrews : MonoBehaviour, ICanvasRaycastFilter
}
else
{
if ((LevelProgress >= ((float)ConfigSystem.GetConfig<CommonModel>().FailedGiftProgress / 100)) && !is_resurgence)
//if (true && !is_resurgence)//zhushi
{
// if ((LevelProgress >= ((float)ConfigSystem.GetConfig<CommonModel>().FailedGiftProgress / 100)) && !is_resurgence)
// //if (true && !is_resurgence)//zhushi
// {
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ResurgenceUI_Open, LevelProgress);
// is_resurgence = true;
// yield return null;
// }
// else
// {
if (GameHelper.GetReviveCount() < 2)
{
yield return new WaitForSeconds(0.3f);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ReviveUI_Open);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ResurgenceUI_Open, LevelProgress);
is_resurgence = true;
yield return null;
}
else
{
if (GameHelper.GetReviveCount() < 2)
{
yield return new WaitForSeconds(0.3f);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ReviveUI_Open);
var temp = new SettlementData { is_success = false, cash_number = cashArray[0], is_level_success = true, is_h5_reward = false };
yield return new WaitForSeconds(0.3f);
}
else
{
var temp = new SettlementData { is_success = false, cash_number = cashArray[0], is_level_success = true, is_h5_reward = false };
yield return new WaitForSeconds(0.3f);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LevelSuccessUI_Open, temp);
}
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LevelSuccessUI_Open, temp);
}
// }
}
}
public bool is_resurgence = false;