fix:1、修复bug。2、删除json表,改为配置加载
This commit is contained in:
@@ -30,7 +30,7 @@ namespace ChillConnect
|
||||
private ConsumeSystem consumeSys;
|
||||
|
||||
private bool isFirstEnter = true;
|
||||
public int enterHallTimes = 0;
|
||||
public int openTipsTimes = 0;
|
||||
public bool isShowRankView = false;
|
||||
public event Action UpdateEvent;
|
||||
private Camera _gameCamera;
|
||||
@@ -104,7 +104,6 @@ namespace ChillConnect
|
||||
{
|
||||
// int index = obj != null ? (int)obj : 2;
|
||||
|
||||
enterHallTimes++;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PlayUI_Close);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RewardAniUI_Close);
|
||||
AudioManager.Instance.StopBGM();
|
||||
@@ -170,12 +169,12 @@ namespace ChillConnect
|
||||
|
||||
private void OpenWb(object obj) {
|
||||
|
||||
// if (obj is not SDKOpenConfig openConfig) return;
|
||||
|
||||
if (obj is not SDKOpenConfig openConfig) return;
|
||||
|
||||
// SdkConfigMgr.Instance.Open(openConfig.normal, openConfig.url);
|
||||
SetCameraVisible(false);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open, false);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open, openConfig);
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.hideBroadCast);
|
||||
}
|
||||
@@ -250,4 +249,12 @@ namespace ChillConnect
|
||||
this.isInH5 = isInH5;
|
||||
}
|
||||
}
|
||||
|
||||
public class SDKOpenConfig
|
||||
{
|
||||
[JsonProperty("normal")]
|
||||
public bool normal;
|
||||
[JsonProperty("url")]
|
||||
public string url;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user