36 lines
938 B
Lua
36 lines
938 B
Lua
YuJianXingManager = {}
|
|
local this = YuJianXingManager
|
|
local riceCtrl = require("Modules/YuJianXing/RiceCtrlView")
|
|
local bgList = {"y_yujianxing_bg","y_yujianxing_bg","y_yujianxing_bg","y_yujianxing_bg"}
|
|
|
|
function this.Initialize()
|
|
this.curState = 0 --当前比赛状态
|
|
this.nextSession = 0 --当前比赛场次
|
|
this.curRankId = 0 --当前排行剧本Id
|
|
this.curRecordList = 0 --当前纪录数据
|
|
this.curBetList = 0 --当前竞猜数据
|
|
end
|
|
|
|
function this.UpdataServerData(msg)
|
|
-- body
|
|
end
|
|
|
|
function this.InitMap()
|
|
this.riceCtrl = riceCtrl:Awake(bgList)
|
|
LogRed(tostring(this.riceCtrl.name))
|
|
end
|
|
|
|
function this.SetGameState(_state)
|
|
this.riceCtrl:SetGameState(_state)
|
|
end
|
|
|
|
function this.DestroyMap()
|
|
-- riceCtrl:SetGameState(false)--结束比赛
|
|
if this.riceCtrl then
|
|
Timer.New(function ()
|
|
this.riceCtrl:Dispose()
|
|
end,5):Start()
|
|
end
|
|
end
|
|
|
|
return YuJianXingManager |