MatchingCompetitionSelectView.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using cfg.GfgCfg;
  5. using ET;
  6. using FairyGUI;
  7. using UI.MatchingCompetition;
  8. using UnityEngine;
  9. using UnityEngine.UI;
  10. namespace GFGGame
  11. {
  12. class MatchingCompetitionSelectView : BaseWindow
  13. {
  14. private UI_MatchingCompetitionSelectUI _ui;
  15. private int _seasonIndex = 0;
  16. private bool isRefresh = false;
  17. private JudgingRoundOpenCfg judgingCfg;
  18. private GameObject _sceneObjectLeft;
  19. private GameObject _sceneObjectRight;
  20. public override void Dispose()
  21. {
  22. if (_ui != null)
  23. {
  24. _ui.Dispose();
  25. }
  26. if (_sceneObjectLeft != null)
  27. {
  28. PrefabManager.Instance.Restore(_sceneObjectLeft);
  29. _sceneObjectLeft = null;
  30. }
  31. if (_sceneObjectRight != null)
  32. {
  33. PrefabManager.Instance.Restore(_sceneObjectRight);
  34. _sceneObjectRight = null;
  35. }
  36. _ui = null;
  37. base.Dispose();
  38. }
  39. protected override void OnInit()
  40. {
  41. base.OnInit();
  42. packageName = UI_MatchingCompetitionSelectUI.PACKAGE_NAME;
  43. _ui = UI_MatchingCompetitionSelectUI.Create();
  44. this.viewCom = _ui.target;
  45. isReturnView = true;
  46. isfullScreen = true;
  47. _ui.m_BtnBack.onClick.Add(OnClickBtnBack);
  48. _ui.m_select1.target.onClick.Add(OnClickBtnSelect1);
  49. _ui.m_select2.target.onClick.Add(OnClickBtnSelect2);
  50. _ui.m_ruleBtn.onClick.Add(MatchingCompetitionDataManager.Instance.OnClickBtnRule);
  51. }
  52. protected override void OnShown()
  53. {
  54. base.OnShown();
  55. _ui.m_bg.url = ResPathUtil.GetBgImgPath("pxs_bj");
  56. _ui.m_BtnBack.touchable = true;
  57. _ui.m_titleText.text = CommonDataManager.Tables.TblJudgingRoundOpenCfg
  58. .DataList[MatchingCompetitionDataManager.Instance.MatchingCompetitionSeason - 1].Name;
  59. //isRefresh = (bool)this.viewData;
  60. judgingCfg =
  61. CommonDataManager.Tables.TblJudgingRoundOpenCfg.GetOrDefault(MatchingCompetitionDataManager.Instance
  62. .MatchingCompetitionSeason);
  63. UpdateView();
  64. UpdatePlayer();
  65. //UpdateDressLeft();
  66. ViewManager.Hide<ModalStatusView>();
  67. Timers.inst.AddUpdate(CheckGuide);
  68. }
  69. protected override void OnHide()
  70. {
  71. if (_sceneObjectLeft != null)
  72. {
  73. PrefabManager.Instance.Restore(_sceneObjectLeft);
  74. _sceneObjectLeft = null;
  75. }
  76. if (_sceneObjectRight != null)
  77. {
  78. PrefabManager.Instance.Restore(_sceneObjectRight);
  79. _sceneObjectRight = null;
  80. }
  81. MatchingCompetitionDataManager.Instance.DressPropIndex = 0;
  82. Timers.inst.Remove(CheckGuide);
  83. base.OnHide();
  84. }
  85. protected override void AddEventListener()
  86. {
  87. base.AddEventListener();
  88. EventAgent.AddEventListener(ConstMessage.DOWNLOAD_FINISH, UpdatePlayer);
  89. //EventAgent.AddEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateDressLeft);
  90. EventAgent.AddEventListener(ConstMessage.REWARDVIEW_CLOTHER, ShowReward);
  91. }
  92. protected override void RemoveEventListener()
  93. {
  94. base.RemoveEventListener();
  95. EventAgent.RemoveEventListener(ConstMessage.DOWNLOAD_FINISH, UpdatePlayer);
  96. //EventAgent.RemoveEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateDressLeft);
  97. EventAgent.RemoveEventListener(ConstMessage.REWARDVIEW_CLOTHER, ShowReward);
  98. }
  99. private void ShowReward()
  100. {
  101. if (MatchingCompetitionDataManager.Instance.SpecialBonusList != null &&
  102. MatchingCompetitionDataManager.Instance.SpecialBonusList.Count > 0)
  103. {
  104. ViewManager.Show<MatchingCompetitionRewardView>(new object[]
  105. { ItemUtil.CreateItemDataList(MatchingCompetitionDataManager.Instance.SpecialBonusList), null });
  106. MatchingCompetitionDataManager.Instance.SpecialBonusList = null;
  107. }
  108. }
  109. #region 宇谦把调用到的这个都注释掉了,具体这段代码的意思我也懒得去理解了, 反正没在用
  110. // private async void UpdateDressLeft()
  111. // {
  112. // //ViewManager.Show<ModalStatusView>("获取搭配数据中...");
  113. // MatchingLeftDataManager.Instance.itemGameObjs.Clear();
  114. // MatchingRightDataManager.Instance.itemGameObjs.Clear();
  115. // PhotographDataManager.Instance.itemGameObjs.Clear();
  116. // PhotographDataManager.Instance.dressUpObj?.Dispose();
  117. // PhotographDataManager.Instance.dressUpObj = new DressUpObj();
  118. // if (_sceneObjectLeft == null)
  119. // {
  120. // _sceneObjectLeft = PrefabManager.Instance.InstantiateSync(ResPathUtil.GetPrefabPath("ScenePhotograph"));
  121. // // 创建render texture
  122. // renderTexureLeft = new RenderTexture((int)_ui.m_playerShow1.target.width,
  123. // (int)_ui.m_playerShow2.target.height, 24);
  124. //
  125. // // 换装父节点 + 相机
  126. // Camera camera = _sceneObjectLeft.transform.Find("Camera").GetComponent<Camera>();
  127. // camera.gameObject.SetActive(true);
  128. // camera.targetTexture = renderTexureLeft;
  129. // // 创建RawImg
  130. // }
  131. //
  132. // PhotographSceneManager.Instance.sceneObject = _sceneObjectLeft;
  133. // if (MatchingLeftDataManager.Instance.DressUpBgID == 0)
  134. // {
  135. // PhotographSceneManager.Instance.AddBgItem(CommonDataManager.Tables.TblItemCfg.GetOrDefault(180001));
  136. // }
  137. // else
  138. // {
  139. // PhotographSceneManager.Instance.AddBgItem(
  140. // CommonDataManager.Tables.TblItemCfg.GetOrDefault(MatchingLeftDataManager.Instance.DressUpBgID));
  141. // }
  142. //
  143. // PhotographSceneManager.Instance.AddBodyItem(1);
  144. // GameObject bodyParent = _sceneObjectLeft.transform.Find("Scene/Role").gameObject;
  145. // PhotographDataManager.Instance.dressUpObj.setSceneObj(_sceneObjectLeft, false, true, bodyParent, false,
  146. // null);
  147. // PhotographDataManager.Instance.dressUpObj.PutOnDressUpData(
  148. // MatchingLeftDataManager.Instance.MathingDressDate);
  149. //
  150. // //对搭配赛特殊处理
  151. // foreach (var item in MatchingLeftDataManager.Instance.DressPropTransInfoDic)
  152. // {
  153. // if (item.Key == MatchingLeftDataManager.Instance.roleID)
  154. // {
  155. // continue;
  156. // }
  157. // else
  158. // {
  159. // List<int> idList = MatchingCompetitionDataManager.Instance.GetIDListByString(item.Key);
  160. // ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(idList[0]);
  161. // if (idList.Count > 1)
  162. // {
  163. // MatchingCompetitionDataManager.Instance.AddSceneItemOne(itemCfg, idList[1], idList[2]);
  164. // }
  165. // else
  166. // {
  167. // MatchingCompetitionDataManager.Instance.AddSceneItem(itemCfg, false);
  168. // }
  169. // //MatchingCompetitionDataManager.Instance.AddSceneItemOne(itemCfg, idList[1], idList[2]);
  170. // }
  171. // }
  172. //
  173. // await Task.Delay(200);
  174. // MatchingLeftDataManager.Instance.InsertGameObjectList();
  175. // for (int i = 0; i < MatchingLeftDataManager.Instance.itemGameObjs.Count; i++)
  176. // {
  177. // GameObject itemGObj = MatchingLeftDataManager.Instance.itemGameObjs[i];
  178. // TransformData itemdata = new TransformData();
  179. // if (MatchingLeftDataManager.Instance.DressPropTransInfoDic.ContainsKey(itemGObj.name))
  180. // {
  181. // itemdata = MatchingLeftDataManager.Instance.DressPropTransInfoDic[itemGObj.name];
  182. // }
  183. //
  184. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.position = itemdata.position;
  185. // if (MatchingLeftDataManager.Instance.itemGameObjs[i].name == "Role")
  186. // {
  187. // if (itemdata.position.y >= -5 || itemdata.position.y <= 5)
  188. // {
  189. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.position =
  190. // new Vector3(itemdata.position.x, 0, 0);
  191. // }
  192. //
  193. // if (itemdata.position.x >= -5 || itemdata.position.x <= 5)
  194. // {
  195. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(0,
  196. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.position.y, 0);
  197. // }
  198. // }
  199. //
  200. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.Rotate(itemGObj.transform.eulerAngles.x,
  201. // itemGObj.transform.eulerAngles.y, itemdata.rotationZ);
  202. // MatchingLeftDataManager.Instance.itemGameObjs[i].transform.localScale = itemdata.scale;
  203. // PhotographUtil.Instance.ChangeLayer(MatchingLeftDataManager.Instance.itemGameObjs[i],
  204. // i * PhotographDataManager.layerCount, "up");
  205. // }
  206. //
  207. // PhotographUtil.Instance.ChangeLayer(MatchingLeftDataManager.Instance.roleGameobj,
  208. // 2 * PhotographDataManager.layerCount, "up");
  209. // await Task.Delay(50);
  210. // UpdateDressRigh();
  211. // }
  212. // private async void UpdateDressRigh()
  213. // {
  214. // MatchingRightDataManager.Instance.itemGameObjs.Clear();
  215. // PhotographDataManager.Instance.itemGameObjs.Clear();
  216. // PhotographDataManager.Instance.dressUpObj?.Dispose();
  217. // PhotographDataManager.Instance.dressUpObj = new DressUpObj();
  218. // if (_sceneObjectRight == null)
  219. // {
  220. // _sceneObjectRight =
  221. // PrefabManager.Instance.InstantiateSync(ResPathUtil.GetPrefabPath("ScenePhotograph"));
  222. // // 创建render texture
  223. // renderTexureRight = new RenderTexture((int)_ui.m_playerShow1.target.width,
  224. // (int)_ui.m_playerShow2.target.height, 24);
  225. //
  226. // // 换装父节点 + 相机
  227. // Camera camera = _sceneObjectRight.transform.Find("Camera").GetComponent<Camera>();
  228. // camera.gameObject.SetActive(true);
  229. // camera.targetTexture = renderTexureRight;
  230. // }
  231. //
  232. // PhotographSceneManager.Instance.sceneObject = _sceneObjectRight;
  233. // if (MatchingRightDataManager.Instance.DressUpBgID == 0)
  234. // {
  235. // PhotographSceneManager.Instance.AddBgItem(CommonDataManager.Tables.TblItemCfg.GetOrDefault(180004));
  236. // }
  237. // else
  238. // {
  239. // PhotographSceneManager.Instance.AddBgItem(
  240. // CommonDataManager.Tables.TblItemCfg.GetOrDefault(MatchingRightDataManager.Instance.DressUpBgID));
  241. // }
  242. //
  243. // PhotographSceneManager.Instance.AddBodyItem(2);
  244. // GameObject bodyParent = _sceneObjectRight.transform.Find("Scene/Role").gameObject;
  245. // PhotographDataManager.Instance.dressUpObj.setSceneObj(_sceneObjectRight, false, true, bodyParent, false,
  246. // null);
  247. // PhotographDataManager.Instance.dressUpObj.PutOnDressUpData(MatchingRightDataManager.Instance
  248. // .MathingDressDate);
  249. //
  250. // //对搭配赛特殊处理
  251. // foreach (var item in MatchingRightDataManager.Instance.DressPropTransInfoDic)
  252. // {
  253. // if (item.Key == MatchingRightDataManager.Instance.roleID)
  254. // {
  255. // continue;
  256. // }
  257. // else
  258. // {
  259. // List<int> idList = MatchingCompetitionDataManager.Instance.GetIDListByString(item.Key);
  260. // ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(idList[0]);
  261. // if (idList.Count > 1)
  262. // {
  263. // MatchingCompetitionDataManager.Instance.AddSceneItemOne(itemCfg, idList[1], idList[2]);
  264. // }
  265. // else
  266. // {
  267. // MatchingCompetitionDataManager.Instance.AddSceneItem(itemCfg, false);
  268. // }
  269. // //MatchingCompetitionDataManager.Instance.AddSceneItemOne(itemCfg, idList[1], idList[2]);
  270. // }
  271. // }
  272. //
  273. // await Task.Delay(200);
  274. // MatchingRightDataManager.Instance.InsertGameObjectList();
  275. // for (int i = 0; i < MatchingRightDataManager.Instance.itemGameObjs.Count; i++)
  276. // {
  277. // GameObject itemGObj = MatchingRightDataManager.Instance.itemGameObjs[i];
  278. // TransformData itemdata = new TransformData();
  279. // if (MatchingRightDataManager.Instance.DressPropTransInfoDic.ContainsKey(itemGObj.name))
  280. // {
  281. // itemdata = MatchingRightDataManager.Instance.DressPropTransInfoDic[itemGObj.name];
  282. // }
  283. //
  284. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.position = itemdata.position;
  285. // if (MatchingRightDataManager.Instance.itemGameObjs[i].name == "Role")
  286. // {
  287. // if (itemdata.position.y >= -5 || itemdata.position.y <= 5)
  288. // {
  289. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.position =
  290. // new Vector3(itemdata.position.x, 0, 0);
  291. // }
  292. //
  293. // if (itemdata.position.x >= -5 || itemdata.position.x <= 5)
  294. // {
  295. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(0,
  296. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.position.y, 0);
  297. // }
  298. // }
  299. //
  300. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.Rotate(itemGObj.transform.eulerAngles.x,
  301. // itemGObj.transform.eulerAngles.y, itemdata.rotationZ);
  302. // MatchingRightDataManager.Instance.itemGameObjs[i].transform.localScale = itemdata.scale;
  303. // PhotographUtil.Instance.ChangeLayer(MatchingRightDataManager.Instance.itemGameObjs[i],
  304. // i * PhotographDataManager.layerCount, "up");
  305. // }
  306. //
  307. // PhotographUtil.Instance.ChangeLayer(MatchingRightDataManager.Instance.roleGameobj,
  308. // 2 * PhotographDataManager.layerCount, "up");
  309. // await Task.Delay(50);
  310. // _sceneObjectRight.transform.position = new Vector3(50, 50, 50);
  311. // UpdatePlayer();
  312. // }
  313. #endregion
  314. private RenderTexture renderTexureLeft;
  315. private RenderTexture renderTexureRight;
  316. private void UpdatePlayer()
  317. {
  318. //_ui.m_playerShow1.m_playerImage.m_playerImage.texture = new NTexture(renderTexureLeft);
  319. //_ui.m_playerShow2.m_playerImage.m_playerImage.texture = new NTexture(renderTexureRight);
  320. _ui.m_playerShow1.m_playerImage.m_playerImage.texture =
  321. MatchingLeftDataManager.Instance.LeftRoleInfo.Ntexture;
  322. _ui.m_playerShow2.m_playerImage.m_playerImage.texture =
  323. MatchingRightDataManager.Instance.RightRoleInfo.Ntexture;
  324. MatchingPhotoWorksData otherLeftdata = MatchingLeftDataManager.Instance.LeftRoleInfo;
  325. JudgingRoundRoleInfo otherLeftInfo = otherLeftdata.JudgingInfo;
  326. RoleInfoManager.Instance.UpdateHead(_ui.m_player1.m_head, otherLeftInfo.HeadItemId,
  327. otherLeftInfo.HeadBorderItemId);
  328. _ui.m_player1.m_nameText.text = otherLeftInfo.RoleName.ToString();
  329. _ui.m_select1.m_numText.visible = false;
  330. _ui.m_player1.m_nameText.visible = false;
  331. _ui.m_select1.m_numText.text = otherLeftInfo.Score.ToString();
  332. MatchingPhotoWorksData otherRightdata = MatchingRightDataManager.Instance.RightRoleInfo;
  333. JudgingRoundRoleInfo otherRightInfo = otherRightdata.JudgingInfo;
  334. RoleInfoManager.Instance.UpdateHead(_ui.m_player2.m_head, otherRightInfo.HeadItemId,
  335. otherRightInfo.HeadBorderItemId);
  336. _ui.m_player2.m_nameText.text = otherRightInfo.RoleName.ToString();
  337. _ui.m_select2.m_numText.visible = false;
  338. _ui.m_player2.m_nameText.visible = false;
  339. _ui.m_select2.m_numText.text = otherRightInfo.Score.ToString();
  340. ViewManager.Hide<ModalStatusView>();
  341. }
  342. private void UpdateView()
  343. {
  344. _ui.m_selectText1.alpha = 0;
  345. _ui.m_selectText2.alpha = 0;
  346. _ui.m_timeText.text = string.Format("剩余次数:{0}",
  347. Mathf.Max(0, judgingCfg.FreeTimes - MatchingCompetitionDataManager.Instance.MatchingRemainingTimes));
  348. }
  349. private void OnClickBtnBack()
  350. {
  351. _ui.m_BtnBack.touchable = true;
  352. ViewManager.GoBackFrom(typeof(MatchingCompetitionSelectView).FullName);
  353. }
  354. private async void OnClickBtnSelect1()
  355. {
  356. if ((judgingCfg.FreeTimes - MatchingCompetitionDataManager.Instance.MatchingRemainingTimes) <= 0)
  357. {
  358. PromptController.Instance.ShowFloatTextPrompt("评选次数不足");
  359. return;
  360. }
  361. bool result = await MatchingCompetitionSproxy.ReqCheckMatchingCompetitionWork(
  362. MatchingLeftDataManager.Instance.LeftRoleInfo.JudgingInfo.WorksId,
  363. MatchingRightDataManager.Instance.RightRoleInfo.JudgingInfo.WorksId
  364. );
  365. if (result)
  366. {
  367. _ui.m_select1.m_c1.selectedIndex = 1;
  368. _ui.m_select1.m_numText.visible = true;
  369. _ui.m_select2.m_numText.visible = true;
  370. _ui.m_player1.m_nameText.visible = true;
  371. _ui.m_player2.m_nameText.visible = true;
  372. _ui.m_select1.m_numText.text = string.Format("心动值{0}",
  373. MatchingLeftDataManager.Instance.LeftRoleInfo.JudgingInfo.Score.ToString());
  374. _ui.m_timeText.text = string.Format("剩余次数:{0}",
  375. Mathf.Max(0,
  376. judgingCfg.FreeTimes - MatchingCompetitionDataManager.Instance.MatchingRemainingTimes));
  377. }
  378. _ui.m_t0.Play(async () =>
  379. {
  380. bool resulst = await MatchingCompetitionSproxy.ReqGetTwoPlayers();
  381. if (resulst)
  382. {
  383. if (_sceneObjectLeft != null)
  384. {
  385. PrefabManager.Instance.Restore(_sceneObjectLeft);
  386. _sceneObjectLeft = null;
  387. }
  388. if (_sceneObjectRight != null)
  389. {
  390. PrefabManager.Instance.Restore(_sceneObjectRight);
  391. _sceneObjectRight = null;
  392. }
  393. //UpdateDressLeft();
  394. UpdateView();
  395. }
  396. });
  397. }
  398. private async void OnClickBtnSelect2()
  399. {
  400. if ((judgingCfg.FreeTimes - MatchingCompetitionDataManager.Instance.MatchingRemainingTimes) <= 0)
  401. {
  402. PromptController.Instance.ShowFloatTextPrompt("评选次数不足");
  403. return;
  404. }
  405. bool result = await MatchingCompetitionSproxy.ReqCheckMatchingCompetitionWork(
  406. MatchingRightDataManager.Instance.RightRoleInfo.JudgingInfo.WorksId,
  407. MatchingLeftDataManager.Instance.LeftRoleInfo.JudgingInfo.WorksId
  408. );
  409. if (result)
  410. {
  411. _ui.m_select2.m_c1.selectedIndex = 1;
  412. _ui.m_select1.m_numText.visible = true;
  413. _ui.m_select2.m_numText.visible = true;
  414. _ui.m_player1.m_nameText.visible = true;
  415. _ui.m_player2.m_nameText.visible = true;
  416. _ui.m_select2.m_numText.text = string.Format("心动值{0}",
  417. MatchingRightDataManager.Instance.RightRoleInfo.JudgingInfo.Score.ToString());
  418. _ui.m_timeText.text = string.Format("剩余次数:{0}",
  419. Mathf.Max(0,
  420. judgingCfg.FreeTimes - MatchingCompetitionDataManager.Instance.MatchingRemainingTimes));
  421. }
  422. _ui.m_t1.Play(async () =>
  423. {
  424. bool resulst = await MatchingCompetitionSproxy.ReqGetTwoPlayers();
  425. if (resulst)
  426. {
  427. if (_sceneObjectLeft != null)
  428. {
  429. PrefabManager.Instance.Restore(_sceneObjectLeft);
  430. _sceneObjectLeft = null;
  431. }
  432. if (_sceneObjectRight != null)
  433. {
  434. PrefabManager.Instance.Restore(_sceneObjectRight);
  435. _sceneObjectRight = null;
  436. }
  437. // UpdateDressLeft();
  438. UpdateView();
  439. }
  440. });
  441. }
  442. private void CheckGuide(object param)
  443. {
  444. if (GuideDataManager.IsGuideFinish("DAPEISAI_2") <= 0)
  445. {
  446. UpdateToCheckGuide(null);
  447. }
  448. else
  449. {
  450. Timers.inst.Remove(CheckGuide);
  451. }
  452. }
  453. protected override void UpdateToCheckGuide(object param)
  454. {
  455. if (!ViewManager.CheckIsTopView(this.viewCom)) return;
  456. GuideController.TryGuide(_ui.m_select1.target, "DAPEISAI_2", 3, "选择你喜欢的搭配!");
  457. GuideController.TryCompleteGuide("DAPEISAI_2", 3);
  458. }
  459. }
  460. }