@@ -106,16 +106,29 @@ 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, () =>
|
||||
{
|
||||
var gamwin =
|
||||
FXManager.Instance.SetFx<SkeletonAnimation>(ui.fx_place, Fx_Type.gamwin, ref closeCallback);
|
||||
gamwin.state.SetAnimation(0, "out", true);
|
||||
});
|
||||
|
||||
ui.is_gift.selectedIndex = GameHelper.IsGiftSwitch()? 1 : 0;
|
||||
|
||||
ui.btn_multi.SetClick(OnClickDouble);
|
||||
ui.btn_collect.SetClick(OnClickClaim);
|
||||
ui.btn_collect.title = GameHelper.Get101Str(value);
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
ui.text_num.text = GameHelper.Get101Str(value);
|
||||
|
||||
ui.btn_collect.title = "" + GameHelper.Get101Str((decimal)value);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.text_num.text = GameHelper.Get101Str(value);
|
||||
ui.btn_collect.title = GameHelper.Get101Str(value);
|
||||
}
|
||||
SetName();
|
||||
SetAvatar();
|
||||
Set101();
|
||||
@@ -157,15 +170,25 @@ namespace RedHotRoast
|
||||
break;
|
||||
}
|
||||
}
|
||||
cash_num = value;
|
||||
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
cash_num = value / (decimal)GameHelper.GetExchangeRateVo().Multi;
|
||||
}
|
||||
else
|
||||
{
|
||||
cash_num = value;
|
||||
}
|
||||
|
||||
var src = "(" ;
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t0.Play(Scroll);
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t1.Play(() =>
|
||||
{
|
||||
rate_idnex++;
|
||||
ui.btn_multi.title = "" + cash_num * boost_array[rate_idnex % 5];
|
||||
var rewards = GameHelper.getChString(cash_num * boost_array[rate_idnex % 5]);
|
||||
ui.btn_multi.title = src + rewards + ")";
|
||||
|
||||
});
|
||||
ui.btn_multi.title = "" + cash_num * boost_array[4];
|
||||
ui.btn_multi.title = src + GameHelper.getChString(cash_num * boost_array[4]) + ")";
|
||||
|
||||
list_1 = new List<item_wheel>() { (ui.wheel.GetChild("wheel_") as wheel_).item_0, (ui.wheel.GetChild("wheel_") as wheel_).item_1, (ui.wheel.GetChild("wheel_") as wheel_).item_2, (ui.wheel.GetChild("wheel_") as wheel_).item_3, (ui.wheel.GetChild("wheel_") as wheel_).item_4, (ui.wheel.GetChild("wheel_") as wheel_).item_5, (ui.wheel.GetChild("wheel_") as wheel_).item_6, (ui.wheel.GetChild("wheel_") as wheel_).item_7, };
|
||||
// list_1[2].img_light.visible = true;
|
||||
@@ -211,7 +234,7 @@ namespace RedHotRoast
|
||||
|
||||
private decimal GetRewardValue(int index = 0)
|
||||
{
|
||||
return GetRewardData(index).value;
|
||||
return GetRewardData(index).value / (decimal)GameHelper.GetExchangeRateVo().Multi;;
|
||||
}
|
||||
|
||||
private RewardOrigin GetRewardOrigin(int index = 0)
|
||||
@@ -283,13 +306,15 @@ namespace RedHotRoast
|
||||
list_1[i].text_rate.text = "X" + rate_list[i];
|
||||
}
|
||||
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t1.Play(() =>
|
||||
var src = "(";
|
||||
var rewards = GameHelper.getChString((decimal)cash_num * boost_array[rate_idnex % boost_array.Length]);
|
||||
((wheel_)ui.wheel.GetChild("wheel_")).t1.Play(() =>
|
||||
{
|
||||
rate_idnex++;
|
||||
ui.btn_multi.title = GameHelper.Get101Str((decimal)cash_num * boost_array[rate_idnex % boost_array.Length]);
|
||||
ui.btn_multi.title =src + rewards + ")";
|
||||
});
|
||||
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t0.Play(Scroll);
|
||||
((wheel_)ui.wheel.GetChild("wheel_")).t0.Play(Scroll);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -337,15 +362,16 @@ namespace RedHotRoast
|
||||
// (ui.wheel.GetChild("wheel_") as wheel_).t0.timeScale = 0;
|
||||
// return;
|
||||
// }
|
||||
var src = "(" ;
|
||||
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t1.Play(() =>
|
||||
((wheel_)ui.wheel.GetChild("wheel_")).t1.Play(() =>
|
||||
{
|
||||
rate_idnex++;
|
||||
ui.btn_multi.title = GameHelper.Get101Str((decimal)cash_num * boost_array[rate_idnex % boost_array.Length]);
|
||||
ui.btn_multi.title = src + GameHelper.getChString((decimal)cash_num * boost_array[rate_idnex % boost_array.Length]) + ")";
|
||||
});
|
||||
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t0.Play(Scroll);
|
||||
(ui.wheel.GetChild("wheel_") as wheel_).t0.timeScale = (ui.wheel.GetChild("wheel_") as wheel_).t0.timeScale - 0.3f;
|
||||
((wheel_)ui.wheel.GetChild("wheel_")).t0.Play(Scroll);
|
||||
((wheel_)ui.wheel.GetChild("wheel_")).t0.timeScale = ((wheel_)ui.wheel.GetChild("wheel_")).t0.timeScale - 0.3f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user