PGRData/Script/matrix/xmovieactions/XMovieActionSpineAnim.lua
2024-09-01 22:49:41 +02:00

14 lines
459 B
Lua

local XMovieActionSpineAnim = XClass(XMovieActionBase, "XMovieActionSpineAnim")
function XMovieActionSpineAnim:Ctor(actionData)
self.SpinePath = actionData.Params[1]
end
function XMovieActionSpineAnim:OnInit()
self.UiRoot.PanelSpine.gameObject:SetActiveEx(not string.IsNilOrEmpty(self.SpinePath))
if not string.IsNilOrEmpty(self.SpinePath) then
self.UiRoot.PanelSpine:LoadPrefab(self.SpinePath)
end
end
return XMovieActionSpineAnim