刘海屏

This commit is contained in:
chenxi 2023-04-27 14:09:52 +08:00
parent fe39dbe13c
commit 6d06898082
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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")