UIGuildHuntView_Generate.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. ---@class UIGuildHunt__Generate_btnBack
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildHunt__Generate_condBox_condTxt
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIGuildHunt__Generate_condBox
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public condTxt UIGuildHunt__Generate_condBox_condTxt
  10. ---@class UIGuildHunt__Generate_costBox_number
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UIGuildHunt__Generate_costBox
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public number UIGuildHunt__Generate_costBox_number
  16. ---@class UIGuildHunt__Generate_btnSummon
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIGuildHunt__Generate_btnChallenge
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIGuildHunt__Generate_awardScrollView
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  25. ---@class UIGuildHunt__Generate_btnPlayRule
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIGuildHunt__Generate_btnAward
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public button UnityEngine.UI.Button
  31. ---@class UIGuildHunt__Generate_btnLog
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIGuildHunt__Generate_btnLeft
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class UIGuildHunt__Generate_btnRight
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIGuildHunt__Generate_skillItem4
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public rectTransform UnityEngine.RectTransform
  43. ---@class UIGuildHunt__Generate_skillItem3
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public rectTransform UnityEngine.RectTransform
  46. ---@class UIGuildHunt__Generate_skillItem2
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public rectTransform UnityEngine.RectTransform
  49. ---@class UIGuildHunt__Generate_skillItem1
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public rectTransform UnityEngine.RectTransform
  52. ---@class UIGuildHunt__Generate_timeTxt
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public text UnityEngine.UI.Text
  55. ---@class UIGuildHunt__Generate_bossName
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public text TMPro.TextMeshProUGUI
  58. ---@class UIGuildHunt__Generate_bossImg
  59. ---@field public gameObject UnityEngine.GameObject
  60. ---@field public rawImage UnityEngine.UI.RawImage
  61. ---@class UIGuildHunt__Generate_AnyBtn
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public button UnityEngine.UI.Button
  64. ---@class UIGuildHunt__Generate
  65. ---@field private gameObject UnityEngine.GameObject
  66. ---@field private transform UnityEngine.Transform
  67. ---@field private AnyBtn UIGuildHunt__Generate_AnyBtn
  68. ---@field private bossImg UIGuildHunt__Generate_bossImg
  69. ---@field private bossName UIGuildHunt__Generate_bossName
  70. ---@field private timer UnityEngine.GameObject
  71. ---@field private timeTxt UIGuildHunt__Generate_timeTxt
  72. ---@field private skillList UnityEngine.GameObject
  73. ---@field private skillItem1 UIGuildHunt__Generate_skillItem1
  74. ---@field private skillItem2 UIGuildHunt__Generate_skillItem2
  75. ---@field private skillItem3 UIGuildHunt__Generate_skillItem3
  76. ---@field private skillItem4 UIGuildHunt__Generate_skillItem4
  77. ---@field private btnRight UIGuildHunt__Generate_btnRight
  78. ---@field private btnLeft UIGuildHunt__Generate_btnLeft
  79. ---@field private btnLog UIGuildHunt__Generate_btnLog
  80. ---@field private btnAward UIGuildHunt__Generate_btnAward
  81. ---@field private btnPlayRule UIGuildHunt__Generate_btnPlayRule
  82. ---@field private awardScrollView UIGuildHunt__Generate_awardScrollView
  83. ---@field private btnChallenge UIGuildHunt__Generate_btnChallenge
  84. ---@field private btnSummon UIGuildHunt__Generate_btnSummon
  85. ---@field private costBox UIGuildHunt__Generate_costBox
  86. ---@field private condBox UIGuildHunt__Generate_condBox
  87. ---@field private btnBack UIGuildHunt__Generate_btnBack
  88. local UIGuildHuntView = class("UIGuildHuntView", require("UIViewBase"))
  89. function UIGuildHuntView:ctor()
  90. end
  91. ---@private
  92. function UIGuildHuntView:SetActive(result)
  93. self.gameObject:SetActive(result)
  94. end
  95. ---@private
  96. function UIGuildHuntView:InitGenerate(Root, data)
  97. self.transform = Root
  98. self.inited = true
  99. if self.super.Init then
  100. self.super.Init(self)
  101. end
  102. local tmp
  103. self:InitGenerate__1(Root,data)
  104. self:InitGenerate__2(Root,data)
  105. self:InitGenerate__3(Root,data)
  106. self:InitGenerate__4(Root,data)
  107. self:InitGenerate__5(Root,data)
  108. self:InitGenerate__6(Root,data)
  109. self:InitGenerate__7(Root,data)
  110. self:InitGenerate__8(Root,data)
  111. self:InitGenerate__9(Root,data)
  112. self:InitGenerate__10(Root,data)
  113. self:InitGenerate__11(Root,data)
  114. self:InitGenerate__12(Root,data)
  115. self:InitGenerate__13(Root,data)
  116. self:InitGenerate__14(Root,data)
  117. self:InitGenerate__15(Root,data)
  118. self:InitGenerate__16(Root,data)
  119. self:InitGenerate__17(Root,data)
  120. self:InitGenerate__18(Root,data)
  121. self:InitGenerate__19(Root,data)
  122. self:InitGenerate__20(Root,data)
  123. self:InitGenerate__21(Root,data)
  124. self:InitGenerate__22(Root,data)
  125. self:InitGenerate__23(Root,data)
  126. end
  127. ---@private
  128. function UIGuildHuntView:InitGenerate__1(Root, data)
  129. --[[
  130. UIAnimator/Alpha
  131. --]]
  132. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.AnyBtn = tmp
  137. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  138. end
  139. ---@private
  140. function UIGuildHuntView:InitGenerate__2(Root, data)
  141. --[[
  142. UIAnimator/Window/Top/BossImg
  143. --]]
  144. local tmp = Root:Find("UIAnimator/Window/Top/BossImg").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.bossImg = tmp
  149. tmp.rawImage = tmp:GetComponent(Enum.TypeInfo.RawImage)
  150. end
  151. ---@private
  152. function UIGuildHuntView:InitGenerate__3(Root, data)
  153. --[[
  154. UIAnimator/Window/Top/BossName
  155. --]]
  156. local tmp = Root:Find("UIAnimator/Window/Top/BossName").gameObject
  157. if tolua.getpeer(tmp) == nil then
  158. tolua.setpeer(tmp, {})
  159. end
  160. self.bossName = tmp
  161. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  162. end
  163. ---@private
  164. function UIGuildHuntView:InitGenerate__4(Root, data)
  165. --[[
  166. UIAnimator/Window/Top/Timer
  167. --]]
  168. local tmp = Root:Find("UIAnimator/Window/Top/Timer").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.timer = tmp
  173. end
  174. ---@private
  175. function UIGuildHuntView:InitGenerate__5(Root, data)
  176. --[[
  177. UIAnimator/Window/Top/Timer/TimeTxt
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window/Top/Timer/TimeTxt").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.timeTxt = tmp
  184. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  185. end
  186. ---@private
  187. function UIGuildHuntView:InitGenerate__6(Root, data)
  188. --[[
  189. UIAnimator/Window/Top/SkillList
  190. --]]
  191. local tmp = Root:Find("UIAnimator/Window/Top/SkillList").gameObject
  192. if tolua.getpeer(tmp) == nil then
  193. tolua.setpeer(tmp, {})
  194. end
  195. self.skillList = tmp
  196. end
  197. ---@private
  198. function UIGuildHuntView:InitGenerate__7(Root, data)
  199. --[[
  200. UIAnimator/Window/Top/SkillList/SkillItem1
  201. --]]
  202. local tmp = Root:Find("UIAnimator/Window/Top/SkillList/SkillItem1").gameObject
  203. if tolua.getpeer(tmp) == nil then
  204. tolua.setpeer(tmp, {})
  205. end
  206. self.skillItem1 = CommonUtil.BindGridViewItem2LuaStatic("SkillItem", tmp)
  207. self.skillItem1.prefabName = "SkillItem"
  208. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  209. end
  210. ---@private
  211. function UIGuildHuntView:InitGenerate__8(Root, data)
  212. --[[
  213. UIAnimator/Window/Top/SkillList/SkillItem2
  214. --]]
  215. local tmp = Root:Find("UIAnimator/Window/Top/SkillList/SkillItem2").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.skillItem2 = CommonUtil.BindGridViewItem2LuaStatic("SkillItem", tmp)
  220. self.skillItem2.prefabName = "SkillItem"
  221. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  222. end
  223. ---@private
  224. function UIGuildHuntView:InitGenerate__9(Root, data)
  225. --[[
  226. UIAnimator/Window/Top/SkillList/SkillItem3
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Top/SkillList/SkillItem3").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.skillItem3 = CommonUtil.BindGridViewItem2LuaStatic("SkillItem", tmp)
  233. self.skillItem3.prefabName = "SkillItem"
  234. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  235. end
  236. ---@private
  237. function UIGuildHuntView:InitGenerate__10(Root, data)
  238. --[[
  239. UIAnimator/Window/Top/SkillList/SkillItem4
  240. --]]
  241. local tmp = Root:Find("UIAnimator/Window/Top/SkillList/SkillItem4").gameObject
  242. if tolua.getpeer(tmp) == nil then
  243. tolua.setpeer(tmp, {})
  244. end
  245. self.skillItem4 = CommonUtil.BindGridViewItem2LuaStatic("SkillItem", tmp)
  246. self.skillItem4.prefabName = "SkillItem"
  247. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  248. end
  249. ---@private
  250. function UIGuildHuntView:InitGenerate__11(Root, data)
  251. --[[
  252. UIAnimator/Window/Top/BtnRight
  253. --]]
  254. local tmp = Root:Find("UIAnimator/Window/Top/BtnRight").gameObject
  255. if tolua.getpeer(tmp) == nil then
  256. tolua.setpeer(tmp, {})
  257. end
  258. self.btnRight = tmp
  259. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  260. end
  261. ---@private
  262. function UIGuildHuntView:InitGenerate__12(Root, data)
  263. --[[
  264. UIAnimator/Window/Top/BtnLeft
  265. --]]
  266. local tmp = Root:Find("UIAnimator/Window/Top/BtnLeft").gameObject
  267. if tolua.getpeer(tmp) == nil then
  268. tolua.setpeer(tmp, {})
  269. end
  270. self.btnLeft = tmp
  271. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  272. end
  273. ---@private
  274. function UIGuildHuntView:InitGenerate__13(Root, data)
  275. --[[
  276. UIAnimator/Window/Top/BtnLog
  277. --]]
  278. local tmp = Root:Find("UIAnimator/Window/Top/BtnLog").gameObject
  279. if tolua.getpeer(tmp) == nil then
  280. tolua.setpeer(tmp, {})
  281. end
  282. self.btnLog = tmp
  283. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  284. end
  285. ---@private
  286. function UIGuildHuntView:InitGenerate__14(Root, data)
  287. --[[
  288. UIAnimator/Window/Top/BtnAward
  289. --]]
  290. local tmp = Root:Find("UIAnimator/Window/Top/BtnAward").gameObject
  291. if tolua.getpeer(tmp) == nil then
  292. tolua.setpeer(tmp, {})
  293. end
  294. self.btnAward = tmp
  295. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  296. end
  297. ---@private
  298. function UIGuildHuntView:InitGenerate__15(Root, data)
  299. --[[
  300. UIAnimator/Window/Top/BtnPlayRule
  301. --]]
  302. local tmp = Root:Find("UIAnimator/Window/Top/BtnPlayRule").gameObject
  303. if tolua.getpeer(tmp) == nil then
  304. tolua.setpeer(tmp, {})
  305. end
  306. self.btnPlayRule = tmp
  307. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  308. end
  309. ---@private
  310. function UIGuildHuntView:InitGenerate__16(Root, data)
  311. --[[
  312. UIAnimator/Window/Bottom/ChallengeReward/AwardScrollView
  313. --]]
  314. local tmp = Root:Find("UIAnimator/Window/Bottom/ChallengeReward/AwardScrollView").gameObject
  315. if tolua.getpeer(tmp) == nil then
  316. tolua.setpeer(tmp, {})
  317. end
  318. self.awardScrollView = tmp
  319. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  320. end
  321. ---@private
  322. function UIGuildHuntView:InitGenerate__17(Root, data)
  323. --[[
  324. UIAnimator/Window/Bottom/BtnChallenge
  325. --]]
  326. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnChallenge").gameObject
  327. if tolua.getpeer(tmp) == nil then
  328. tolua.setpeer(tmp, {})
  329. end
  330. self.btnChallenge = tmp
  331. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  332. end
  333. ---@private
  334. function UIGuildHuntView:InitGenerate__18(Root, data)
  335. --[[
  336. UIAnimator/Window/Bottom/BtnSummon
  337. --]]
  338. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnSummon").gameObject
  339. if tolua.getpeer(tmp) == nil then
  340. tolua.setpeer(tmp, {})
  341. end
  342. self.btnSummon = tmp
  343. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  344. end
  345. ---@private
  346. function UIGuildHuntView:InitGenerate__19(Root, data)
  347. --[[
  348. UIAnimator/Window/Bottom/CostBox
  349. --]]
  350. local tmp = Root:Find("UIAnimator/Window/Bottom/CostBox").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.costBox = tmp
  355. end
  356. ---@private
  357. function UIGuildHuntView:InitGenerate__20(Root, data)
  358. --[[
  359. UIAnimator/Window/Bottom/CostBox/Number
  360. --]]
  361. local tmp = Root:Find("UIAnimator/Window/Bottom/CostBox/Number").gameObject
  362. if tolua.getpeer(tmp) == nil then
  363. tolua.setpeer(tmp, {})
  364. end
  365. self.costBox.number = tmp
  366. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  367. end
  368. ---@private
  369. function UIGuildHuntView:InitGenerate__21(Root, data)
  370. --[[
  371. UIAnimator/Window/Bottom/CondBox
  372. --]]
  373. local tmp = Root:Find("UIAnimator/Window/Bottom/CondBox").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.condBox = tmp
  378. end
  379. ---@private
  380. function UIGuildHuntView:InitGenerate__22(Root, data)
  381. --[[
  382. UIAnimator/Window/Bottom/CondBox/CondTxt
  383. --]]
  384. local tmp = Root:Find("UIAnimator/Window/Bottom/CondBox/CondTxt").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.condBox.condTxt = tmp
  389. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  390. end
  391. ---@private
  392. function UIGuildHuntView:InitGenerate__23(Root, data)
  393. --[[
  394. UIAnimator/Window/Bottom/BtnBack
  395. --]]
  396. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBack").gameObject
  397. if tolua.getpeer(tmp) == nil then
  398. tolua.setpeer(tmp, {})
  399. end
  400. self.btnBack = tmp
  401. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  402. end
  403. ---@private
  404. function UIGuildHuntView:GenerateDestroy()
  405. if tolua.getpeer(self.condBox.condTxt) ~= nil then
  406. tolua.setpeer(self.condBox.condTxt, nil)
  407. end
  408. if tolua.getpeer(self.costBox.number) ~= nil then
  409. tolua.setpeer(self.costBox.number, nil)
  410. end
  411. if tolua.getpeer(self.AnyBtn) ~= nil then
  412. tolua.setpeer(self.AnyBtn, nil)
  413. end
  414. self.AnyBtn = nil
  415. if tolua.getpeer(self.bossImg) ~= nil then
  416. tolua.setpeer(self.bossImg, nil)
  417. end
  418. self.bossImg = nil
  419. if tolua.getpeer(self.bossName) ~= nil then
  420. tolua.setpeer(self.bossName, nil)
  421. end
  422. self.bossName = nil
  423. if tolua.getpeer(self.timer) ~= nil then
  424. tolua.setpeer(self.timer, nil)
  425. end
  426. self.timer = nil
  427. if tolua.getpeer(self.timeTxt) ~= nil then
  428. tolua.setpeer(self.timeTxt, nil)
  429. end
  430. self.timeTxt = nil
  431. if tolua.getpeer(self.skillList) ~= nil then
  432. tolua.setpeer(self.skillList, nil)
  433. end
  434. self.skillList = nil
  435. if self.skillItem1.GenerateDestroy ~= nil then
  436. self.skillItem1:GenerateDestroy()
  437. end
  438. if tolua.getpeer(self.skillItem1) ~= nil then
  439. tolua.setpeer(self.skillItem1, nil)
  440. end
  441. self.skillItem1 = nil
  442. if self.skillItem2.GenerateDestroy ~= nil then
  443. self.skillItem2:GenerateDestroy()
  444. end
  445. if tolua.getpeer(self.skillItem2) ~= nil then
  446. tolua.setpeer(self.skillItem2, nil)
  447. end
  448. self.skillItem2 = nil
  449. if self.skillItem3.GenerateDestroy ~= nil then
  450. self.skillItem3:GenerateDestroy()
  451. end
  452. if tolua.getpeer(self.skillItem3) ~= nil then
  453. tolua.setpeer(self.skillItem3, nil)
  454. end
  455. self.skillItem3 = nil
  456. if self.skillItem4.GenerateDestroy ~= nil then
  457. self.skillItem4:GenerateDestroy()
  458. end
  459. if tolua.getpeer(self.skillItem4) ~= nil then
  460. tolua.setpeer(self.skillItem4, nil)
  461. end
  462. self.skillItem4 = nil
  463. if tolua.getpeer(self.btnRight) ~= nil then
  464. tolua.setpeer(self.btnRight, nil)
  465. end
  466. self.btnRight = nil
  467. if tolua.getpeer(self.btnLeft) ~= nil then
  468. tolua.setpeer(self.btnLeft, nil)
  469. end
  470. self.btnLeft = nil
  471. if tolua.getpeer(self.btnLog) ~= nil then
  472. tolua.setpeer(self.btnLog, nil)
  473. end
  474. self.btnLog = nil
  475. if tolua.getpeer(self.btnAward) ~= nil then
  476. tolua.setpeer(self.btnAward, nil)
  477. end
  478. self.btnAward = nil
  479. if tolua.getpeer(self.btnPlayRule) ~= nil then
  480. tolua.setpeer(self.btnPlayRule, nil)
  481. end
  482. self.btnPlayRule = nil
  483. if tolua.getpeer(self.awardScrollView) ~= nil then
  484. tolua.setpeer(self.awardScrollView, nil)
  485. end
  486. self.awardScrollView = nil
  487. if tolua.getpeer(self.btnChallenge) ~= nil then
  488. tolua.setpeer(self.btnChallenge, nil)
  489. end
  490. self.btnChallenge = nil
  491. if tolua.getpeer(self.btnSummon) ~= nil then
  492. tolua.setpeer(self.btnSummon, nil)
  493. end
  494. self.btnSummon = nil
  495. if tolua.getpeer(self.costBox) ~= nil then
  496. tolua.setpeer(self.costBox, nil)
  497. end
  498. self.costBox = nil
  499. if tolua.getpeer(self.condBox) ~= nil then
  500. tolua.setpeer(self.condBox, nil)
  501. end
  502. self.condBox = nil
  503. if tolua.getpeer(self.btnBack) ~= nil then
  504. tolua.setpeer(self.btnBack, nil)
  505. end
  506. self.btnBack = nil
  507. self.transform = nil
  508. self.gameObject = nil
  509. self.inited = false
  510. end
  511. return UIGuildHuntView