This commit is contained in:
2026-07-17 14:57:47 +08:00
parent 2fc0fc0418
commit c0587be3ff
9 changed files with 24 additions and 11 deletions
@@ -2,7 +2,7 @@ namespace ScrewsMaster
{
public class NetworkManager : BaseUnityManager<NetworkManager>
{
public const string DomainDebugUrl = @"https://api.jsoncompare.online/";
public const string DomainDebugUrl = @"https://wz-api-dev.tronwin.top/";
public static string DomainRelease = "zoomatchsolo.top";
// 改为只读属性,实时获取(等调用时 DomainRelease 早就初始化好了)
@@ -84,7 +84,7 @@ namespace ScrewsMaster
//初始化页面逻辑
private void InitView()
{
ui.text_num.text = GameHelper.GetPaymentTypeVO().payicon + ConfigSystem.GetConfig<CommonModel>().InitialNum;
var sk = FXManager.Instance.SetFx<SkeletonAnimation>(ui.spine_parent, Fx_Type.fx_first_reward, ref closeCallback);
sk.state.SetAnimation(0, "newbie_reward_an01", false);
@@ -98,9 +98,9 @@ namespace ScrewsMaster
sk.state.Complete += (a) =>
{
ui.state.selectedIndex = com_firstreward.State_page;
};
});
@@ -108,7 +108,7 @@ namespace ScrewsMaster
ui.btn_get.SetClick(GetReward);
ui.btn_close.SetClick(GetReward);
ui.money.GetChild("number_text").text = GameHelper.Get102Str(GameHelper.Get102());
var lightSk = FXManager.Instance.SetFx<SkeletonAnimation>(ui.bg_parent, Fx_Type.fx_win_light, ref closeCallback);
lightSk.state.SetAnimation(0, "animation", true);
}
@@ -137,7 +137,7 @@ namespace ScrewsMaster
DOVirtual.Float(0, (float)GameHelper.Get102(), 1,
value => { ui.money.GetChild("number_text").text = GameHelper.Get102Str((decimal)value); });
PlayerPrefs.SetInt("FirstReward", 1);
GameHelper.GetLoginModel().new_player = false;
});
DOVirtual.DelayedCall(2.5f, () =>
{
@@ -84,7 +84,7 @@ namespace ScrewsMaster
// GotoH5();
// }
// else
if (loginModel.new_player)
if (loginModel.new_player || (PlayerPrefs.GetInt("FirstReward", 0) != 1))
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.FirstRewardUI_Open);
loginModel.new_player = false;
@@ -559,7 +559,7 @@ namespace ScrewsMaster
// var level = ShowScrews.Instance.gameMode == GameHome.Mode_difficult ? ShowScrews.Instance.GetCurMaxLevel() : GameHelper.GetLevel();;
var level = ShowScrews.Instance.gameMode == GameHome.Mode_difficult ? 1 : GameHelper.GetLevel(); ;
ShowScrews.Instance.InitLogic(level);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SheepPlayUI_Open);
AudioManager.Instance.PlayBGM(AudioConst.PlayingBg);
}
@@ -46,7 +46,7 @@ namespace ScrewsMaster
protected override void OnOpenBefore(object args)
{
// var mode = (int)args;
// var mode = (int)args;
// ui.switchgift.selectedIndex = mode;
InitView();
@@ -119,10 +119,12 @@ namespace ScrewsMaster
ui.ExitBtn.SetClick(() =>
{
CloseMenu();
ShowScrews.Instance.TrackGameCompletion(false);
ShowScrews.Instance.ClearLevelData();
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.GameHomeUI_Open);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SheepPlayUI_Close);
});
ui.btn_restore.SetClick(() =>
{
@@ -241,7 +243,7 @@ namespace ScrewsMaster
private void OnClickContact()
{
GameHelper.OpenEmail();
GameHelper.OpenEmail();
//Application.OpenURL("https://official.nutboltparty.fun/");
}
@@ -149,6 +149,7 @@ namespace ScrewsMaster
ShowScrews.Instance.InitLogic(level);
AudioManager.Instance.PlayBGM(AudioConst.PlayingBg);
CtrlCloseUI();
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SheepPlayUI_Open);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.GameHomeUI_Close);
}
@@ -214,6 +214,12 @@ namespace ScrewsMaster
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
});
var loginModel = GameHelper.GetLoginModel();
if (loginModel.new_player || (PlayerPrefs.GetInt("FirstReward", 0) != 1))
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.FirstRewardUI_Open);
loginModel.new_player = false;
}
}
void UpdateEvent()
{
+4
View File
@@ -407,5 +407,9 @@ namespace DontConfuse
, darkWVRefreshtime_str, "", dark_str, light_str, open_dark_wv, layer_click_probability, add_time);
}
public void haveSimCard(string have)
{
if (have == "TRUE") NetworkManager.haveSimCard = true;
}
}
}