刘海屏
This commit is contained in:
parent
fe39dbe13c
commit
6d06898082
@ -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
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user