【登陆界面】视频卸载判空

dev_chengFeng
ZhangBiao 2021-06-02 21:04:45 +08:00
parent a846715e1a
commit de30eb3499
1 changed files with 4 additions and 2 deletions

View File

@ -60,6 +60,8 @@ function PackageManager.SetVideo(obj,Image)
end end
function PackageManager.UnloadVideo() function PackageManager.UnloadVideo()
Log("卸载视频:"..tostring(this.config.VideoName)) if this.config.VideoName then
resMgr:UnLoadAsset(this.config.VideoName) Log("卸载视频:"..tostring(this.config.VideoName))
resMgr:UnLoadAsset(this.config.VideoName)
end
end end