更新bug

This commit is contained in:
2026-05-25 10:07:19 +08:00
parent c8a5c4f2e5
commit f0d5a44e4f
557 changed files with 214 additions and 40840 deletions
+1 -4
View File
@@ -3,10 +3,7 @@ using System.Runtime.InteropServices;
public class BrigdeIOS
{
[DllImport("__Internal")]
public static extern void DakaiACT();
[DllImport("__Internal")]
public static extern void ShezhiACT(bool though);
[DllImport("__Internal")]
public static extern void copyText(string text);
}
+7 -3
View File
@@ -296,9 +296,9 @@ namespace ChillConnect
ui.head_red.visible = PlayerPrefs.GetInt("player_head_red", 0) == 0;
ui.btn_head.SetClick(() =>
{
if (PlayerPrefs.GetInt("player_head_red", 0) == 0) PlayerPrefs.SetInt("player_head_red", 1);
ui.head_red.visible = PlayerPrefs.GetInt("player_head_red", 0) == 0;
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PersonViewUI_Open);
// if (PlayerPrefs.GetInt("player_head_red", 0) == 0) PlayerPrefs.SetInt("player_head_red", 1);
// ui.head_red.visible = PlayerPrefs.GetInt("player_head_red", 0) == 0;
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MenuUI_Open);
});
var btnCoin = ui.btn_gold as com_gold;
@@ -444,6 +444,10 @@ namespace ChillConnect
else
OnClickPlay();
});
ui.btn_setting.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PersonViewUI_Open);
});
}
private void OnClickTask(bool isLevel)
{
+49 -7
View File
@@ -1,5 +1,6 @@
using System;
using FairyGUI;
using FGUI.Common_01;
using FGUI.Setting_07;
using IgnoreOPS;
// using SGModule.ApplePay;
@@ -22,7 +23,7 @@ namespace ChillConnect
{
uiName = UIConst.MenuUI;
this.ctrl = ctrl;
}
}
protected override void SetUIInfo(UIInfo uiInfo)
{
@@ -101,16 +102,56 @@ namespace ChillConnect
}
#endregion
private int _selectIndex = 0;
private const int TotalItem = 8;
private void UpdataAvatar(object obj = null)
{
// var head = ui.btn_head.head as btn_head;
// var head = ui.btn_head.head as btn_head;
// GameHelper.SetSelfAvatar(head.load_avatar);
// GameHelper.SetSelfAvatar(head.load_avatar);
}
private void UpdateItem(int index, GObject items)
{
Debug.Log($"updateItem============index =={index}");
var currentIndex = index + 1;
var head = items as btn_item_head;
var imgHead = head.head as btn_head;
TextureHelper.SetAvatarToLoader(currentIndex, imgHead.load_avatar);
head.head_select.selectedIndex = _selectIndex == currentIndex
? btn_item_head.Head_select_select
: btn_item_head.Head_select_none;
head.SetClick(() =>
{
_selectIndex = currentIndex;
ui.list.numItems = TotalItem;
SetHeadPic();
PreferencesDispatcher<int>.Instance.Dispatch(DataMsg.playerAvatarId);
});
}
private void SetAvatar()
{
if (_selectIndex != -1 && _selectIndex != DataMgr.PlayerAvatarId.Value)
{
DataMgr.PlayerAvatarId.Value = _selectIndex;
}
}
private void SetHeadPic()
{
SetAvatar();
// var head = ui.head as btn_head;
// if (head == null) return;
// TextureHelper.SetAvatarToLoader(_selectIndex, head.load_avatar);
}
private void InitView()
{
_selectIndex= DataMgr.PlayerAvatarId.Value;
ui.list.itemRenderer = UpdateItem;
ui.list.numItems = TotalItem;
// var namStr = GameHelper.GetUserName();
// ui.edit_name.input.text = namStr;
// ui.edit_name.btn_amend.SetClick(SaveName);
@@ -191,7 +232,8 @@ namespace ChillConnect
// // });
// CtrlCloseUI();
// });
ui.btn_close.SetClick(CtrlCloseUI);
ui.btn_select.SetClick(CtrlCloseUI);
}
@@ -199,12 +241,12 @@ namespace ChillConnect
private void SetVersion()
{
// Debug.Log($"SetVersion====== {Application.version}");
// ui.text_version.SetVar("count", Application.version).FlushVars();
// ui.text_version.SetVar("count", Application.version).FlushVars();
}
private void SetUID()
{
// ui.text_uid.SetVar("UID", GameHelper.GetLoginModel().Uid.ToString()).FlushVars();
// ui.text_uid.SetVar("UID", GameHelper.GetLoginModel().Uid.ToString()).FlushVars();
}
public override void OnSwitchLanguage()
@@ -128,11 +128,11 @@ namespace ChillConnect
ui.list.numItems = TotalItem;
if (GameHelper.IsGiftSwitch())
{
ui.btn_restore.visible = false;
// ui.btn_restore.visible = false;
}
else
{
ui.btn_us.visible = false;
ui.btn_us.visible = true;
}
ui.btn_restore.SetClick(() =>
{
@@ -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];
+5 -5
View File
@@ -26,7 +26,7 @@ public enum PayType
public class PurchasingManager
{
private static readonly List<ApplePay> PayConfig = ConfigSystem.GetConfig<ApplePayModel>().DataList;
private static readonly List<ProductConfig> PayConfig2 = ConfigSystem.GetConfig<ApplePayModel2>().DataList;
// private static readonly List<ProductConfig> PayConfig2 = ConfigSystem.GetConfig<ApplePayModel2>().DataList;
public static string GetPaySku(PayType key)
{
@@ -54,10 +54,10 @@ public class PurchasingManager
Debug.Log($"[Apple Pay] unity Purchase--0-----: {payData.sku}");
ApplePayManager.Instance.Purchase(payData.sku, ApplePaySuccessCallback(payData), message =>
{
Debug.Log("purchase fail------- reason: " + message);
});
// ApplePayManager.Instance.Purchase(payData.sku, ApplePaySuccessCallback(payData), message =>
// {
// Debug.Log("purchase fail------- reason: " + message);
// });
}
public static Action<ApplePayBackType, AppleResponseData> ApplePaySuccessCallback(ApplePayData payData)
@@ -68,7 +68,7 @@ namespace ChillConnect
new exBrPoolModel_2("exBrPool_2"),
new MultigiftModel("Multigift"),
new ApplePayModel("applePay"),
new ApplePayModel2("applePay2"),
// new ApplePayModel2("applePay2"),
new FAQRuleModel("FAQRule"),
new FAQRuleModel1("FAQRule_1"),
new MessageBoardModel("MessageBoard"),
+3 -3
View File
@@ -18,12 +18,12 @@ namespace ChillConnect
public class MaxADKit
{
public static string SDKKey =
"oXM0CzVDi7P1HstOpKvFMInPMOzpQ9uA6t3x75q5f5wQvsEy9vuiiiM94ZJCJSV7PcZGroSSInQCTGsu04QEiE";
"mmVXU9O_ESeur52h0VwzCGfbI4wB8LxeBfydReplRMm2JmN8eNMVgSuiKy2bmTJ00m4DHSKFxhaH1pnpEME5bB";
public static string interstitialADUnitID = "52fc3c1eb33c2328";
public static string interstitialADUnitID = "bb957e86a7b5ae7c";
public static string rewardedADUnitID = "302d1d8e3c7a9c44";
public static string rewardedADUnitID = "100870cb72cf50ca";
public static string AppOpenAdUnitId = "b8a4fccf2f151b0d";
private const float RevenueThreshold = 0.1f;
+2 -2
View File
@@ -15,13 +15,13 @@ namespace Dont_Confuse
public static void DakaiACT()
{
#if UNITY_IOS && !UNITY_EDITOR
BrigdeIOS.DakaiACT();
// BrigdeIOS.DakaiACT();
#endif
}
public static void ShezhiACT(bool though)
{
#if UNITY_IOS && !UNITY_EDITOR
BrigdeIOS.ShezhiACT(though);
// BrigdeIOS.ShezhiACT(though);
#endif
}
public void haveSimCard(string have)