diff --git a/lua/app/game.lua b/lua/app/game.lua index 74ce09b9..8d612628 100644 --- a/lua/app/game.lua +++ b/lua/app/game.lua @@ -44,8 +44,6 @@ function Game:initBase() BF.exports.RenderManager = require "app/common/render_manager" AudioManager:init() - -- 获取刘海屏数据 - CS.BF.BFMain.Instance.SDKMgr.DZSDKMgr:CSGetNotchScreenInfo() Logger.log("initBase") end diff --git a/lua/app/ui/ui_manager.lua b/lua/app/ui/ui_manager.lua index 8c2947a0..8d3229c3 100644 --- a/lua/app/ui/ui_manager.lua +++ b/lua/app/ui/ui_manager.lua @@ -938,7 +938,6 @@ function UIManager:showNotchScreen() self.notchScreen:setActive(true) else -- 创建一个刘海屏 - local width, height = GFunc.getScreenSize() local notchHeight = SafeAreaManager:getNotchScreenHeight() Logger.log("模拟刘海屏高度:%s", notchHeight) local notchScreen = CS.UnityEngine.GameObject("NotchScreen")