fix:1、修复bug。2、添加音效
This commit is contained in:
@@ -104,7 +104,6 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
var value = GetRewardValue();
|
||||
ui.text_num.text = GameHelper.Get101Str(value);
|
||||
|
||||
((btn_claim4)ui.btn_collect).is_gift.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
|
||||
DOVirtual.DelayedCall(0.2f, () =>
|
||||
@@ -120,9 +119,9 @@ namespace RedHotRoast
|
||||
ui.btn_collect.SetClick(OnClickClaim);
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
ui.text_num.text = GameHelper.Get101Str(value);
|
||||
ui.text_num.text = GameHelper.Get102Str(value);
|
||||
|
||||
ui.btn_collect.title = "" + GameHelper.Get101Str((decimal)value);
|
||||
ui.btn_collect.title = GameHelper.Get102Str((decimal)value);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -170,14 +169,14 @@ namespace RedHotRoast
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
cash_num = value / (decimal)GameHelper.GetExchangeRateVo().Multi;
|
||||
}
|
||||
else
|
||||
{
|
||||
// if (GameHelper.IsGiftSwitch())
|
||||
// {
|
||||
// cash_num = value;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
cash_num = value;
|
||||
}
|
||||
// }
|
||||
|
||||
var src = "(" ;
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t0.Play(Scroll);
|
||||
@@ -234,7 +233,15 @@ namespace RedHotRoast
|
||||
|
||||
private decimal GetRewardValue(int index = 0)
|
||||
{
|
||||
return GetRewardData(index).value / (decimal)GameHelper.GetExchangeRateVo().Multi;;
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
return GetRewardData(index).value / (decimal)GameHelper.GetExchangeRateVo().Multi;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetRewardData(index).value;
|
||||
}
|
||||
}
|
||||
|
||||
private RewardOrigin GetRewardOrigin(int index = 0)
|
||||
|
||||
Reference in New Issue
Block a user