fix:1、添加sdk。2、修复bug
This commit is contained in:
@@ -7,6 +7,7 @@ using FairyGUI;
|
||||
using FGUI.Common_01;
|
||||
using FGUI.Turntable_11;
|
||||
using IgnoreOPS;
|
||||
using SGModule.Common.Extensions;
|
||||
using Spine.Unity;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -173,6 +174,7 @@ namespace ChillConnect
|
||||
}
|
||||
|
||||
item.text_num.text = id == 102 ? GameHelper.Get102Str((decimal)quantity) : GameHelper.Get101Str((decimal)quantity);
|
||||
Debug.Log($"wheel id=========={id}");
|
||||
item.status.selectedIndex = id == 102 ? com_coin.Status_b : com_coin.Status_a;
|
||||
}
|
||||
|
||||
@@ -279,13 +281,21 @@ namespace ChillConnect
|
||||
var id = vo.wheel_item;
|
||||
var quantity = vo.quantity;
|
||||
|
||||
if (id == 0)
|
||||
if (!GameHelper.IsGiftSwitch() && id == 102)
|
||||
{
|
||||
id = 101;
|
||||
quantity *= 10;
|
||||
}
|
||||
|
||||
// if (id == 0)
|
||||
// {
|
||||
var endui = id == 101 ? ui.point : ui.point1;
|
||||
|
||||
var startPoint = GameHelper.GetUICenterPosition(ui.startpoint);
|
||||
var endPoint = GameHelper.GetUICenterPosition(ui.point);
|
||||
var endPoint = GameHelper.GetUICenterPosition(endui);
|
||||
|
||||
var rewardData = new RewardData();
|
||||
var rewardSingleData = new RewardSingleData(101, (decimal)quantity, RewardOrigin.LuckyWheel)
|
||||
var rewardSingleData = new RewardSingleData(id, (decimal)quantity, RewardOrigin.LuckyWheel)
|
||||
{
|
||||
startPosition = startPoint,
|
||||
endPosition = new Vector2(endPoint.x - 150, endPoint.y - 136),
|
||||
@@ -298,12 +308,12 @@ namespace ChillConnect
|
||||
normalAnim.state.SetAnimation(0, "daiji", true);
|
||||
});
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.GetReward, rewardData);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.AddItemNumber(id - 1, (int)quantity);
|
||||
GameHelper.ShowTips("Successfully received");
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// GameHelper.AddItemNumber(id - 1, (int)quantity);
|
||||
// GameHelper.ShowTips("Successfully received");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user