Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
jiaoyangna 2021-06-03 10:39:21 +08:00
commit e50b59d005
1 changed files with 1 additions and 1 deletions

View File

@ -47,12 +47,12 @@ end
function PackageManager.SetVideo(obj,Image)
if this.config.VideoName then
Image:SetActive(true)
local video = obj:GetComponent("VideoPlayer")
Log("加载视频:"..tostring(this.config.VideoName))
video.url = ServerConfigManager.GetVersionInfo("resUrl") .. AppConst.PlatformPath .."/"..tostring(this.config.VideoName) ..".mp4"
-- video.clip = resMgr:LoadAsset(this.config.VideoName)
video:Play()
Image:SetActive(true)
else
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
Image:SetActive(false)