fix:1、修复bug。2、添加跳转亚马逊。
This commit is contained in:
@@ -123,42 +123,36 @@ namespace ChillConnect
|
||||
|
||||
|
||||
private void OpenWb(object obj) {
|
||||
return;
|
||||
if (obj is not SDKOpenConfig openConfig) return;
|
||||
|
||||
|
||||
Debug.Log($"open wb normal==={openConfig.normal} url==={openConfig.url}");
|
||||
SetCameraVisible(false);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open, openConfig);
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.hideBroadCast);
|
||||
|
||||
if (UIManager.Instance.IsExistUI(UIConst.GameLoginUI))
|
||||
{
|
||||
Debug.Log($"gamelogin ui is exist ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SetCameraVisible(bool visible)
|
||||
{
|
||||
// // 只在首次调用时查找
|
||||
// if (_gameCamera == null)
|
||||
// {
|
||||
// // 使用 FindWithTag 确保能找到非激活对象
|
||||
//
|
||||
// _gameCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
|
||||
//
|
||||
// }
|
||||
// if (_gameCamera != null)
|
||||
// {
|
||||
// _gameCamera.enabled = visible;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.LogError("GameCamera reference not found!");
|
||||
// }
|
||||
if (_gameCamera == null)
|
||||
{
|
||||
// 使用 FindWithTag 确保能找到非激活对象
|
||||
|
||||
_gameCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
|
||||
|
||||
}
|
||||
if (_gameCamera != null)
|
||||
{
|
||||
_gameCamera.enabled = visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("GameCamera reference not found!");
|
||||
}
|
||||
|
||||
GameHelper.ShowSheepPlayUI(visible);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user