Hotfix - 1.13.0.126

EN: 1.13.0.126
CN: 1.13.0.126
JP: 1.13.0.130
KR: 1.13.0.132
This commit is contained in:
SL1900
2026-07-23 17:00:00 +09:00
parent 8c4bd41668
commit fb98bcdc16
27 changed files with 101 additions and 89 deletions
+8 -14
View File
@@ -3,17 +3,12 @@ local GameResourceLoader = require("Game.Common.Resource.GameResourceLoader")
local ResTypeAny = GameResourceLoader.ResType.Any
local typeof = typeof
local mapInstance = {}
local mapPrefab = {}
local nNextId = 1
local LoadPrefab = function(sPath)
local prefab = mapPrefab[sPath]
prefab = GameResourceLoader.LoadAsset(ResTypeAny, Settings.AB_ROOT_PATH .. sPath, typeof(Object))
if prefab == nil then
prefab = GameResourceLoader.LoadAsset(ResTypeAny, Settings.AB_ROOT_PATH .. sPath, typeof(Object))
if prefab == nil then
printError("[SpineManager] 加载预制体失败, path = " .. tostring(sPath))
return nil
end
mapPrefab[sPath] = prefab
printError("[SpineManager] 加载预制体失败, path = " .. tostring(sPath))
return nil
end
return prefab
end
@@ -59,7 +54,8 @@ function SpineManager.Create(nId, trParent)
skel = skeleton,
sPath = sPath,
bPaused = false,
fLastTimeScale = 1
fLastTimeScale = 1,
bBound = false
}
return id
end
@@ -80,7 +76,8 @@ function SpineManager.Bind(go)
skel = skeleton,
sPath = nil,
bPaused = false,
fLastTimeScale = 1
fLastTimeScale = 1,
bBound = true
}
return id
end
@@ -102,15 +99,12 @@ function SpineManager.Unbind(id)
end
function SpineManager.ClearAll()
for _, tb in pairs(mapInstance) do
if tb.go ~= nil and tb.go:IsNull() == false then
if tb.bBound ~= true and tb.go ~= nil and tb.go:IsNull() == false then
destroyImmediate(tb.go)
end
end
mapInstance = {}
end
function SpineManager.ReleasePrefabCache()
mapPrefab = {}
end
function SpineManager.PlayAnim(id, sAnimName, bLoop, nTrackIndex)
local tb = GetInstance(id)
if tb == nil or tb.skel == nil then