forked from endernon/PGRData
14 lines
459 B
Lua
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
|