更新bug
This commit is contained in:
@@ -141,14 +141,13 @@ namespace ChillConnect
|
||||
private void InitView()
|
||||
{
|
||||
|
||||
normalAnim.state.SetAnimation(0, "zhuanpan_zhizhen_idle", true);
|
||||
normalAnim.state.SetAnimation(0, "daiji", true);
|
||||
for (var i = 0; i < ItemList.Count; i++)
|
||||
{
|
||||
vidieWeight[i] = turntableData.DataList[i].weight;
|
||||
}
|
||||
ui.disc.rotation = 0;
|
||||
ui.btn_spin.SetClick(SpineAnim);
|
||||
ui.spin.touchable = false;
|
||||
ui.close.SetClick(() =>
|
||||
{
|
||||
CtrlCloseUI();
|
||||
@@ -179,8 +178,11 @@ namespace ChillConnect
|
||||
|
||||
var times = DataMgr.ThisDayWatchSlyderVideoNum.Value;
|
||||
var limits = GameHelper.GetCommonModel().wheelTimes[0];
|
||||
ui.spin.text_spintimes.SetVar("times", times.ToString()).FlushVars();
|
||||
ui.spin.text_spintimes.SetVar("limits", limits.ToString()).FlushVars();
|
||||
// ui.spin.text_spintimes.SetVar("times", times.ToString()).FlushVars();
|
||||
// ui.spin.text_spintimes.SetVar("limits", limits.ToString()).FlushVars();
|
||||
|
||||
ui.text_spintimes.SetVar("times", times.ToString()).FlushVars();
|
||||
ui.text_spintimes.SetVar("limits", limits.ToString()).FlushVars();
|
||||
|
||||
}
|
||||
|
||||
@@ -240,7 +242,7 @@ namespace ChillConnect
|
||||
{
|
||||
// normalAnim.SetActive(false);
|
||||
ui.disc.rotation = 0;
|
||||
normalAnim.state.SetAnimation(0, "zhuanpan_zhizhen_run", true);
|
||||
normalAnim.state.SetAnimation(0, "zhuandong", true);
|
||||
isClickSpin = true;
|
||||
ui.close.touchable = false;
|
||||
ui.close.grayed = false;
|
||||
@@ -260,7 +262,7 @@ namespace ChillConnect
|
||||
|
||||
private void ReceivePlane(Turntable vo)
|
||||
{
|
||||
normalAnim.state.SetAnimation(0, "zhuanpan_win", true);
|
||||
normalAnim.state.SetAnimation(0, "zhongjiang", true);
|
||||
|
||||
DOVirtual.DelayedCall(1.5f, () =>
|
||||
{
|
||||
@@ -276,28 +278,33 @@ namespace ChillConnect
|
||||
var id = vo.wheel_item;
|
||||
var quantity = vo.quantity;
|
||||
|
||||
if (!GameHelper.IsGiftSwitch() && id == 102)
|
||||
if (id == 0)
|
||||
{
|
||||
id = 101;
|
||||
quantity *= 10;
|
||||
var startPoint = GameHelper.GetUICenterPosition(ui.startpoint);
|
||||
var endPoint = GameHelper.GetUICenterPosition(ui.point);
|
||||
|
||||
var rewardData = new RewardData();
|
||||
var rewardSingleData = new RewardSingleData(101, (decimal)quantity, RewardOrigin.LuckyWheel)
|
||||
{
|
||||
startPosition = startPoint,
|
||||
endPosition = new Vector2(endPoint.x - 150, endPoint.y - 136),
|
||||
};
|
||||
rewardData.AddReward(rewardSingleData);
|
||||
rewardData.displayType = RewardDisplayType.RewardFly | RewardDisplayType.Dialog |
|
||||
RewardDisplayType.ValueChange;
|
||||
rewardData.AddCompleted((isScu) =>
|
||||
{
|
||||
normalAnim.state.SetAnimation(0, "daiji", true);
|
||||
});
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.GetReward, rewardData);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.AddItemNumber(id - 1, (int)quantity);
|
||||
GameHelper.ShowTips("Successfully received");
|
||||
}
|
||||
|
||||
var endPoint = GameHelper.GetUICenterPosition(ui.point);
|
||||
|
||||
var rewardData = new RewardData();
|
||||
var rewardSingleData = new RewardSingleData(id, (decimal)quantity, RewardOrigin.LuckyWheel)
|
||||
{
|
||||
endPosition = new Vector2(endPoint.x - 150, endPoint.y - 136),
|
||||
};
|
||||
rewardData.AddReward(rewardSingleData);
|
||||
rewardData.displayType = RewardDisplayType.RewardFly | RewardDisplayType.ValueChange;
|
||||
rewardData.AddCompleted((isScu) =>
|
||||
{
|
||||
normalAnim.state.SetAnimation(0, "zhuanpan_zhizhen_idle", true);
|
||||
|
||||
});
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.GetReward, rewardData);
|
||||
|
||||
DataMgr.NextOpenWheelStampTime.Value =
|
||||
GameHelper.GetNowTime() + GameHelper.GetCommonModel().wheelTimes[1];
|
||||
|
||||
Reference in New Issue
Block a user