public override void SetData(params object[] paramsObjects) { if (paramsObjects != null && paramsObjects.Length > 0 && paramsObjects[0] is JumpData) { _model = RegisterModel <RecollectionModel>(); _model.JumpData = paramsObjects[0] as JumpData; } }
public override void Init() { _model = RegisterModel <RecollectionModel>(); _panel = new RecollectionPanel(); _panel.Init(this); _panel.Show(0); GuideManager.RegisterModule(this); }
public override void Init() { _model = GetData <RecollectionModel>(); NetWorkManager.Instance.Send <CardMemoriesRuleRes>(CMD.CARDMEMORIESC_CARDMEMORIESRULE, null, res => { _model.InitRule(res); NetWorkManager.Instance.Send <CardMemoriesInfoRes>(CMD.CARDMEMORIESC_CARDMEMORIESINFO, null, OnGetInfo); }, null, true, GlobalData.VersionData.VersionDic[CMD.CARDMEMORIESC_CARDMEMORIESRULE]); EventDispatcher.AddEventListener(EventConst.SendBuyRecolletionPowerEvent, HandleBuyRecolletionPowerEvent); EventDispatcher.AddEventListener(EventConst.AwardIsEnough, AwardIsEnough); EventDispatcher.AddEventListener(EventConst.DailyRefresh6, DailyRefresh6); }