void OnRollButtonClick() { MG_Manager.Play_SpinDice(); if (!MG_Manager.Instance.canChangeGame) { return; } if (MG_Manager.Instance.Get_Save_DiceLife() > 0) { ac_Dice.enabled = true; MG_Manager.Instance.Add_Save_DiceLife(-1); ac_Dice.SetBool("RollStart", true); nextStep = RandomStep(); if (MG_SaveManager.TodayExtraRewardTimes > 0) { MG_SaveManager.DiceNextGiftTime--; } MG_Manager.Instance.canChangeGame = false; MG_Manager.Instance.SendAdjustDiceEvent(); } else { MG_UIManager.Instance.ShowPopPanelAsync(MG_PopPanelType.BuyDiceEnergy); } }