【 包配置】添加判空
parent
50f10993c4
commit
9bb57b48a5
|
@ -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
|
Loading…
Reference in New Issue