31 lines
743 B
Plaintext
31 lines
743 B
Plaintext
LuaHandleRetChooseProp = {}
|
|
|
|
function LuaHandleRetChooseProp.HandlePacket(mem)
|
|
require "LuaDistributesRetChooseProp"
|
|
local packet = LuaDistributesRetChooseProp.ExtraPacket(mem)
|
|
--print(packet)
|
|
local ret = packet
|
|
print("LuaHandleRetChooseProp.HandlePacket(mem)")
|
|
Util.Print(ret)
|
|
local groupId = packet.groupId
|
|
local boxId = packet.boxId
|
|
local state = packet.state
|
|
|
|
|
|
local uiObj = CS.LuaUIManager.Instance:GetUIInstance("MysticalBoxRoot")
|
|
if uiObj == nil then
|
|
print("uiObj is nil")
|
|
end
|
|
if state >= 1 then
|
|
uiObj:GetComponent("LuaUIBehaviour"):CallScriptFuncAtPath("MysticalBoxUI.OnSelectedRet", packet)
|
|
else
|
|
uiObj:GetComponent("LuaUIBehaviour"):CallScriptFuncAtPath("MysticalBoxUI.OnUnSelectedRet", packet)
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|