fix:1、添加sdk。2、修复bug

This commit is contained in:
barry
2026-06-11 18:30:41 +08:00
parent fcf9128dd3
commit 570f4635f2
1240 changed files with 111200 additions and 39704 deletions
+34 -11
View File
@@ -1,7 +1,8 @@
// #if UNITY_EDITOR
// #endif
using Dont_Confuse;
using IgnoreOPS;
using FairyGUI;
using IgnoreOPS;
using UnityEngine;
@@ -76,6 +77,9 @@ namespace ChillConnect
AppDispatcher.Instance.Dispatch(AppMsg.AppManagerRegister);
AppDispatcher.Instance.Dispatch(AppMsg.InitUIMgr);
// NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
#if UNITY_EDITOR
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
#endif
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
// DataMgr.InitPreferences();
@@ -86,25 +90,44 @@ namespace ChillConnect
{
CtrlDispatcher.Instance.Dispatch(CtrlMsg.Game_StartReady);
if (GameHelper.IsGiftSwitch() && !ispen)
{
ispen = true;
WebviewManager.DakaiACT();
}
TimerHelper.mEasy.AddTimer(0.1f, () =>
{
AudioManager.Instance.InitDefaultButtonClickSound(AudioConst.gameclick);
TimerHelper.mEasy.AddTimer(0.5f, () =>
{
AudioManager.Instance.InitDefaultButtonClickSound(AudioConst.UIButtonDefault);
ModuleManager.Instance.AllModuleGameStart();
ShowScene();
SaveingPotHelper.CheckSaveingPot();
SaveingPotHelper.TestingClearTime();
if (GameHelper.IsGiftSwitch())
{
// WebviewManager.Instance.openWebview();
}
WebviewManager.Instance.SetFullScreen();
int flyswitch = ConfigSystem.GetConfig<CommonModel>().flyswitch;
int propswitch = ConfigSystem.GetConfig<CommonModel>().propswitch;
int offset_y = ConfigSystem.GetConfig<CommonModel>().WVOffset[0];
int offset_y1 = ConfigSystem.GetConfig<CommonModel>().WVOffset[1];
Debug.Log("barry offset_y: " + offset_y + " offset_y1: " + offset_y1);
float top_offset = 0;//fgui中的顶部信息的高度
float buttom_offset = 155;
if (Screen.safeArea.y != 0)
{//刘海屏
top_offset += Screen.safeArea.y;
}
WebviewManager.Instance.SetOffset(offset_y, offset_y1);
WebviewManager.Instance.SetPadding(0, top_offset / GRoot.inst.height, 0, buttom_offset / GRoot.inst.height);
WebviewManager.Instance.RefreshUrl();
// Debug.Log($"flyswitch==1 ------ {flyswitch == 1}");
// Debug.Log($"propswitch==1 ------ {propswitch == 1}");
WebviewManager.Instance.setFlyBtnTag(flyswitch == 1);
WebviewManager.Instance.setRewardBtnTag(propswitch == 1);
WebviewManager.Instance.SetDarkThough(true);
WebviewManager.Instance.ShowH5View(false);
WebviewManager.Instance.SetBtn(ConfigSystem.GetConfig<CommonModel>().propCoord[0], ConfigSystem.GetConfig<CommonModel>().propCoord[1], 60, 60);
}
});
}
private static bool is_open;