From 6d068980824186e56a58fb673e38db9f15728620 Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 27 Apr 2023 14:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=98=E6=B5=B7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/game.lua | 2 -- lua/app/ui/ui_manager.lua | 1 - 2 files changed, 3 deletions(-) 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")