【 包配置】添加判空

dev_chengFeng
gaoxin 2021-06-04 12:01:08 +08:00
parent 50f10993c4
commit 9bb57b48a5
1 changed files with 23 additions and 19 deletions

View File

@ -60,6 +60,7 @@ end
function PackageManager.SetVideo(obj, bg)
obj:SetActive(false)
if this.config then
if this.config.VideoName then
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.IS_PLAY_LOGIN_VIDEO) then
Log("加载视频:"..tostring(this.config.VideoName))
@ -79,10 +80,13 @@ function PackageManager.SetVideo(obj, bg)
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
end
end
end
function PackageManager.UnloadVideo()
if this.config then
if this.config.VideoName then
-- Log("卸载视频:"..tostring(this.config.VideoName))
-- resMgr:UnLoadAsset(this.config.VideoName)
end
end
end