ManaTutorial.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. public class ManaTutorial : Regist
  6. {
  7. #region 变量
  8. public static bool PayExempt
  9. {
  10. get
  11. {
  12. if (PayExempt_)
  13. {
  14. return true;
  15. }
  16. else
  17. {
  18. if (PayExemptAmt > 0)
  19. {
  20. PayExemptAmt--;
  21. return true;
  22. }
  23. else
  24. {
  25. return false;
  26. }
  27. }
  28. }
  29. set { PayExempt_ = value; }
  30. }
  31. public static bool ConnectExempt
  32. {
  33. get
  34. {
  35. if (ConnectExempt_)
  36. {
  37. return true;
  38. }
  39. else
  40. {
  41. if (ConnectExemptAmt > 0)
  42. {
  43. ConnectExemptAmt--;
  44. return true;
  45. }
  46. else
  47. {
  48. return false;
  49. }
  50. }
  51. }
  52. set { ConnectExempt_ = value; }
  53. }
  54. public static bool PayExempt_;
  55. public static bool ConnectExempt_;
  56. public static bool TutorialB;
  57. public static bool TutorialC;
  58. public static bool TutorialB_;
  59. public static bool TutorialC_;
  60. public static int TutorialIndexA;
  61. public static int TutorialIndexB;
  62. public static int TutorialIndexC;
  63. public static int PayExemptAmt;
  64. public static int ConnectExemptAmt;
  65. public static bool TutorialA;
  66. #endregion
  67. public override void Instantiate()
  68. {
  69. if (TutorialA)
  70. {
  71. ManaReso.Get("Tutorial", Folder.Scene, true, transform, false, ObjType.Tutorial).AddScript<Tutorial>();
  72. }
  73. }
  74. public override void RegistValueC()
  75. {
  76. ManaReso.Get<Image>("N_Mask").material = ManaReso.Load<Material>("UIMaskMat", Folder.Effect);
  77. Tutorial.Arrow = ManaReso.Get("N_Arrow");
  78. Tutorial.Material = ManaReso.Get<Image>("N_Mask").material;
  79. if (TutorialA)
  80. {
  81. ManaReso.Get("TutorialMask").AddScript<SceneMask>();
  82. ManaReso.Get("PlayerBk1").CreateMove2D();
  83. ManaReso.Get("PlayerBk2").CreateMove2D();
  84. ManaReso.Get("PlayerBk3").CreateMove2D();
  85. ManaReso.Get("Tutorial").CreateTweenSr(0, 1, 1f, true, true, Curve.EaseOutQuad, false, true);
  86. ManaReso.Get("PlayerBk1").CreateTweenScale(new Vector3(0.75f, 0.75f, 0.75f), new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  87. ManaReso.Get("PlayerBk2").CreateTweenScale(new Vector3(0.75f, 0.75f, 0.75f), new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  88. ManaReso.Get("PlayerBk3").CreateTweenScale(new Vector3(0.75f, 0.75f, 0.75f), new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  89. ManaReso.Get("TutorialMask").CreateTweenSr(0, 180 / 255f, 0.25f, true, true, Curve.EaseOutQuad);
  90. if (TutorialIndexA == 1)
  91. {
  92. PrepareStepA1();
  93. }
  94. else if (TutorialIndexA == 2)
  95. {
  96. Garden.Instance.TutorialToRegular();
  97. PrepareStepA2();
  98. }
  99. else if (TutorialIndexA == 4)
  100. {
  101. ManaReso.SetActive("N_Tutorial", true);
  102. ManaReso.SetActive("Tutorial", true);
  103. ManaReso.SetActive("TutorialMask", true);
  104. ManaReso.SetActive("TutorialCollider", true);
  105. Garden.Instance.TutorialToRegular();
  106. ManaUI.Instance.TutorialToRegular();
  107. Transform tra = ManaGarden.SlotList[0].transform;
  108. Tutorial.HightScene(0.1f, 0.075f, tra.FindChild("SlotArrow"), tra);
  109. }
  110. else if (TutorialIndexA == 6)
  111. {
  112. Garden.Instance.TutorialToRegular();
  113. ManaUI.Instance.TutorialToRegular();
  114. PrepareStepA6();
  115. }
  116. }
  117. }
  118. public static void EndStepA1()
  119. {
  120. Garden.Instance.TutorialToRegular();
  121. Destroy(ManaReso.Get("PlayerBk1").gameObject);
  122. Destroy(ManaReso.Get("PlayerBk2").gameObject);
  123. Destroy(ManaReso.Get("PlayerBk3").gameObject);
  124. PrepareStepA2();
  125. }
  126. public static void EndStepA2()
  127. {
  128. Tutorial.HightDisable();
  129. PrepareStepA3();
  130. }
  131. public static void EndStepA3()
  132. {
  133. Tutorial.HightDisable();
  134. ManaReso.SetActive("D_Quit", true);
  135. PrepareStepA4();
  136. }
  137. public static void EndStepA4()
  138. {
  139. Tutorial.HightDisable();
  140. PrepareStepA5();
  141. }
  142. public static void EndStepA5()
  143. {
  144. PrepareStepA6();
  145. }
  146. public static void EndStepA6()
  147. {
  148. Tutorial.HightDisable();
  149. PrepareStepA7();
  150. }
  151. public static void EndStepA7()
  152. {
  153. Tutorial.HightDisable(0, true);
  154. PrepareStepA8();
  155. }
  156. public static void EndStepA8()
  157. {
  158. Tutorial.HightDisable(0, true);
  159. PrepareStepA9();
  160. }
  161. public static void EndA()
  162. {
  163. TutorialA = false;
  164. ManaAchieve.AchieveDepth = ManaAchieve.AchieveDepth;
  165. Tutorial.HightDisable();
  166. ManaReso.SetActive("Tutorial", false);
  167. ManaReso.SetActive("N_Tutorial", false);
  168. PayExemptAmt = 0;
  169. ConnectExemptAmt = 0;
  170. }
  171. public static void PrepareStepA1()
  172. {
  173. TutorialIndexA = 1;
  174. ManaPlayer.PlayerPink.CreateTweenScale(new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  175. ManaPlayer.PlayerBlond.CreateTweenScale(new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  176. ManaPlayer.PlayerBrown.CreateTweenScale(new Vector3(0.9f, 0.9f, 0.9f), 1f, true, true, Curve.EaseOutQuad);
  177. ManaReso.Get("PlayerBk2").TweenForScale();
  178. ManaPlayer.PlayerBlond.TweenForScale();
  179. ManaReso.SetActive("PlayerBk1", true);
  180. ManaReso.SetActive("PlayerBk2", true);
  181. ManaReso.SetActive("PlayerBk3", true);
  182. ManaReso.SetActive("TutorialMask", true);
  183. ManaReso.SetActive("TutorialCollider", true);
  184. ManaReso.SetActive("N_Tutorial", true);
  185. ManaReso.SetActive("N_Confirm", true);
  186. ManaReso.AddButtonEventOnetime
  187. (
  188. "N_Confirm",
  189. () =>
  190. {
  191. Transform tra = ManaPlayer.SelePlayerTra;
  192. ManaPlayer.Player = tra.GetComponent<Player>();
  193. tra.parent = ManaReso.Get("Garden");
  194. ManaReso.TraDic.Add(tra.name, tra);
  195. ManaAudio.PlayClip(Clip.BtnClip);
  196. ManaReso.Get("PlayerBk1").SetCollider(false);
  197. ManaReso.Get("PlayerBk2").SetCollider(false);
  198. ManaReso.Get("PlayerBk3").SetCollider(false);
  199. tra.CreateTweenScale(ManaReso.Get("PlayerPosTra").localScale, 1f, true, true, Curve.EaseOutQuad);
  200. tra.CreateTweenVec3D(ManaReso.Get("PlayerPosTra").position, 1f, false, true, true, Curve.EaseOutQuad);
  201. tra.TweenForVec();
  202. tra.TweenForScale();
  203. ManaReso.Get("N_Confirm").TweenBacCG();
  204. Tween tween = ManaReso.Get("Tutorial").TweenBacSr();
  205. tween.AddEventOnetime
  206. (
  207. EventType.BackwardFinish,
  208. () =>
  209. {
  210. EndStepA1();
  211. }
  212. );
  213. }
  214. );
  215. }
  216. public static void PrepareStepA2()
  217. {
  218. TutorialIndexA = 2;
  219. ManaUI.Instance.TutorialToRegular();
  220. ManaReso.Get("C_Group").TweenForCG();
  221. ManaReso.Get("C_MiniGame").TweenForCG();
  222. ManaReso.SetActive("C_Coin", false);
  223. ManaReso.SetActive("C_Setting", false);
  224. ManaReso.SetActive("C_Achieve", false);
  225. ManaReso.SetActive("C_Manage", false);
  226. ManaReso.SetActive("N_Tutorial", true);
  227. Tween tween = ManaReso.Get("N_Mask").TweenConForGra();
  228. tween.AddEventOnetime
  229. (
  230. EventType.ForwardFinish,
  231. () =>
  232. {
  233. Tutorial.HightScreen(ManaReso.Get("C_MiniArrow0"), ManaReso.Get("C_MiniArrow1"), ManaReso.Get("C_MiniGame"));
  234. }
  235. );
  236. ManaReso.AddButtonEventOnetime
  237. (
  238. "C_MiniGame",
  239. () =>
  240. {
  241. EndStepA2();
  242. }
  243. );
  244. }
  245. public static void PrepareStepA3()
  246. {
  247. ManaReso.Get("Tutorial").SetCollider(false);
  248. ManaReso.SetActive("D_Quit", false);
  249. Tween tween = ManaReso.Get("D_MiniGame").GetTweenCG();
  250. tween.AddEventOnetime
  251. (
  252. EventType.ForwardFinish,
  253. () =>
  254. {
  255. Tutorial.HightScreen(ManaReso.Get("D_BeginArrow0"), ManaReso.Get("D_BeginArrow1"), ManaReso.Get("D_Begin"));
  256. }
  257. );
  258. ManaReso.PushButtonEventOnetime
  259. (
  260. "D_Begin",
  261. () =>
  262. {
  263. Tutorial.HightDisable();
  264. }
  265. );
  266. ManaReso.AddButtonEventOnetime
  267. (
  268. "Da_GetAward",
  269. () =>
  270. {
  271. EndStepA3();
  272. }
  273. );
  274. }
  275. public static void PrepareStepA4()
  276. {
  277. TutorialIndexA = 4;
  278. Tween tween = ManaReso.Get("D_MiniGame").GetTweenCG();
  279. tween.AddEventOnetime
  280. (
  281. EventType.BackwardFinish,
  282. () =>
  283. {
  284. ManaReso.Get("Tutorial").SetCollider(true);
  285. ManaReso.Get<SpriteRenderer>("TutorialMask").material.SetColor("_Color", Color.white);
  286. ManaReso.SetActive("TutorialMask", true);
  287. ManaReso.SetActive("TutorialCollider", true);
  288. Transform tra = ManaGarden.SlotList[0].transform;
  289. Tutorial.HightScene(0.1f, 0.075f, tra.FindChild("SlotArrow"), tra);
  290. }
  291. );
  292. }
  293. public static void PrepareStepA5()
  294. {
  295. Tween tween = ManaReso.Get("G_Flower").TweenForCG();
  296. tween.AddEventOnetime
  297. (
  298. EventType.ForwardFinish,
  299. () =>
  300. {
  301. Transform tra = ManaReso.Get("G_RegularGrid").GetChild(0);
  302. Tutorial.HightScreen(tra.FindChild("Arrow0"), tra);
  303. }
  304. );
  305. FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic[1];
  306. flowerInfo.Button.AddButtonEventOnetime
  307. (
  308. () =>
  309. {
  310. Tutorial.HightDisable(0, false);
  311. Tutorial.HightScreen(ManaReso.Get("G_Arrow0"), ManaReso.Get("G_Close"));
  312. }
  313. );
  314. ManaReso.AddButtonEventOnetime
  315. (
  316. "G_Close",
  317. () =>
  318. {
  319. Tutorial.HightDisable();
  320. }
  321. );
  322. tween.AddEventOnetime
  323. (
  324. EventType.BackwardFinish,
  325. () =>
  326. {
  327. EndStepA5();
  328. }
  329. );
  330. }
  331. public static void PrepareStepA6()
  332. {
  333. TutorialIndexA = 6;
  334. ManaReso.SetActive("C_Coin", true);
  335. ManaReso.SetActive("C_Setting", true);
  336. ManaReso.SetActive("C_Achieve", true);
  337. ManaReso.SetActive("C_Manage", true);
  338. ManaReso.SetActive("N_Tutorial", true);
  339. Tween tween = ManaReso.Get("C_Group").TweenForCG();
  340. tween.AddEventOnetime
  341. (
  342. EventType.ForwardFinish, () =>
  343. {
  344. Tutorial.HightScreen(ManaReso.Get("C_ManageArrow0"), ManaReso.Get("C_Manage"));
  345. }
  346. );
  347. ManaReso.AddButtonEventOnetime
  348. (
  349. "C_Manage",
  350. () =>
  351. {
  352. EndStepA6();
  353. }
  354. );
  355. }
  356. public static void PrepareStepA7()
  357. {
  358. Tween tween = ManaReso.Get("F_Manage0").GetTweenVec();
  359. tween.AddEventOnetime
  360. (
  361. EventType.ForwardFinish,
  362. () =>
  363. {
  364. Transform tra = ManaData.SkillDic["Ability1"].SkillItem;
  365. Tutorial.HightScreen(tra.FindChild("Arrow0"), tra.FindChild("Arrow1"), tra.FindChild("Btn"));
  366. }
  367. );
  368. SkillRoot skill = ManaData.SkillDic["Ability1"];
  369. skill.ItemBtn.AddButtonEventOnetime
  370. (
  371. () =>
  372. {
  373. Tutorial.HightDisable(0, true);
  374. PayExemptAmt = 1;
  375. }
  376. );
  377. tween = ManaReso.Get("Fe_Info").GetTweenCG();
  378. tween.AddEventOnetime
  379. (
  380. EventType.ForwardFinish,
  381. () =>
  382. {
  383. Tutorial.HightScreen(ManaReso.Get("Fe_Arrow0"), ManaReso.Get("Fe_Arrow1"), ManaReso.Get("Fe_Btn"));
  384. ManaReso.AddButtonEventOnetime
  385. (
  386. "Fe_Btn",
  387. () =>
  388. {
  389. ManaReso.Get("Fe_Info").TweenBacCG();
  390. EndStepA7();
  391. }
  392. );
  393. }
  394. );
  395. }
  396. public static void PrepareStepA8()
  397. {
  398. Tween tween = ManaReso.Get("Fe_Info").GetTweenCG();
  399. tween.AddEventOnetime
  400. (
  401. EventType.BackwardFinish,
  402. () =>
  403. {
  404. Transform tra = ManaData.SkillDic["Skill1"].SkillItem;
  405. Tutorial.HightScreen(tra.FindChild("Arrow0"), tra.FindChild("Arrow1"), tra.FindChild("Btn"));
  406. }
  407. );
  408. SkillRoot skill = ManaData.SkillDic["Skill1"];
  409. skill.ItemBtn.AddButtonEventOnetime
  410. (
  411. () =>
  412. {
  413. Tutorial.HightDisable(0, true);
  414. PayExemptAmt = 1;
  415. }
  416. );
  417. tween = ManaReso.Get("Fe_Info").GetTweenCG();
  418. tween.AddEventOnetime
  419. (
  420. EventType.ForwardFinish,
  421. () =>
  422. {
  423. Tutorial.HightScreen(ManaReso.Get("Fe_Arrow0"), ManaReso.Get("Fe_Arrow1"), ManaReso.Get("Fe_Btn"));
  424. ManaReso.AddButtonEventOnetime
  425. (
  426. "Fe_Btn",
  427. () =>
  428. {
  429. ManaReso.Get("Fe_Info").TweenBacCG();
  430. EndStepA8();
  431. }
  432. );
  433. }
  434. );
  435. }
  436. public static void PrepareStepA9()
  437. {
  438. Tween tween = ManaReso.Get("Fe_Info").GetTweenCG();
  439. tween.AddEventOnetime
  440. (
  441. EventType.BackwardFinish,
  442. () =>
  443. {
  444. ConnectExemptAmt = 1;
  445. Tutorial.HightScreen(ManaReso.Get("F_Arrow0"), ManaReso.Get("F_Skill1"));
  446. }
  447. );
  448. ManaReso.AddButtonEventOnetime
  449. (
  450. "F_SkillBk11",
  451. () =>
  452. {
  453. EndA();
  454. }
  455. );
  456. }
  457. public static void EndStepC1()
  458. {
  459. Tutorial.HightDisable();
  460. }
  461. public static void EndC()
  462. {
  463. TutorialC = false;
  464. Tutorial.HightDisable();
  465. ManaReso.SetActive("N_Tutorial", false);
  466. PayExemptAmt = 0;
  467. ConnectExemptAmt = 0;
  468. }
  469. public static void PrepareStepC1()
  470. {
  471. TutorialC = true;
  472. TutorialC_ = false;
  473. Tween tween = ManaReso.Get("Fe_Info").TweenBacCG();
  474. tween.AddEventOnetime
  475. (
  476. EventType.BackwardFinish,
  477. () =>
  478. {
  479. ManaReso.Get("F_Manage").TweenBacGra();
  480. tween = ManaReso.Get("C_Group").GetTweenCG();
  481. tween.AddEventOnetime
  482. (
  483. EventType.ForwardFinish,
  484. () =>
  485. {
  486. ManaReso.SetActive("N_Tutorial", true);
  487. tween = ManaReso.Get("N_Mask").TweenForGra();
  488. tween.AddEventOnetime
  489. (
  490. EventType.ForwardFinish,
  491. () =>
  492. {
  493. PayExemptAmt = 1;
  494. ManaReso.SetActive("C_Visit", true);
  495. Tutorial.HightScreen(ManaReso.Get("C_VisitArrow0"), ManaReso.Get("C_Visit"));
  496. ManaReso.AddButtonEventOnetime
  497. (
  498. "C_Visit",
  499. () =>
  500. {
  501. EndC();
  502. //EndStepC1();
  503. //PrepareStepC2();
  504. }
  505. );
  506. }
  507. );
  508. }
  509. );
  510. }
  511. );
  512. }
  513. public static void PrepareStepC2()
  514. {
  515. Tween tween = ManaReso.Get("I_BlackMask").GetTweenCG();
  516. tween.AddEventOnetime
  517. (
  518. EventType.ForwardFinish,
  519. () =>
  520. {
  521. Auxiliary.Instance.DelayCall
  522. (
  523. () =>
  524. {
  525. ManaReso.SetActive("C_Return", true);
  526. Tutorial.HightScreen(ManaReso.Get("C_ReturnArrow0"), ManaReso.Get("C_Return"));
  527. ManaReso.AddButtonEventOnetime
  528. (
  529. "C_Return",
  530. () =>
  531. {
  532. EndC();
  533. }
  534. );
  535. },
  536. 3f
  537. );
  538. }
  539. );
  540. }
  541. public static void EndStepB1()
  542. {
  543. Tutorial.HightDisable();
  544. }
  545. public static void EndB()
  546. {
  547. Tutorial.HightDisable();
  548. TutorialB = false;
  549. PayExemptAmt = 0;
  550. ConnectExemptAmt = 0;
  551. }
  552. public static void PrepareStepB1()
  553. {
  554. TutorialB = false;
  555. TutorialB_ = false;
  556. ManaReso.Get("N_Mask").TweenForGra();
  557. ManaReso.Get("Fe_Info").TweenBacCG();
  558. ManaReso.SetActive("N_Tutorial", true);
  559. Ability skill = (Ability) ManaData.SkillDic["Ability2"];
  560. if (skill.ItemStatus == SkillStatus.Upgrade)
  561. {
  562. PrepareStepB3();
  563. }
  564. else
  565. {
  566. Move move = ManaReso.Get<ScrollRect>("Fa_Scrr").Locate(skill.SkillItem, 1, Curve.EaseOutQuad, LocatePos.Middle);
  567. move.AddEventOnetime
  568. (
  569. EventType.ForwardFinish,
  570. () =>
  571. {
  572. Tutorial.HightScreen(skill.SkillItem.FindChild("Arrow0"), skill.SkillItem.FindChild("Arrow1"), skill.SkillItem.FindChild("Btn"));
  573. }
  574. );
  575. skill.ItemBtn.AddButtonEventOnetime
  576. (
  577. () =>
  578. {
  579. Tutorial.HightDisable(0, true);
  580. }
  581. );
  582. Tween tween = ManaReso.Get("Fe_Info").GetTweenCG();
  583. tween.AddEventOnetime
  584. (
  585. EventType.ForwardFinish,
  586. () =>
  587. {
  588. Tutorial.HightScreen(ManaReso.Get("Fe_Arrow0"), ManaReso.Get("Fe_Arrow1"), ManaReso.Get("Fe_Btn"));
  589. ManaReso.AddButtonEventOnetime
  590. (
  591. "Fe_Btn",
  592. () =>
  593. {
  594. EndStepB1();
  595. move = ManaReso.Get("MainCamera").CreateZoom2D();
  596. move.AddEventOnetime
  597. (
  598. EventType.ForwardFinish,
  599. () =>
  600. {
  601. PrepareStepB2();
  602. }
  603. );
  604. }
  605. );
  606. }
  607. );
  608. }
  609. }
  610. public static void PrepareStepB2()
  611. {
  612. ManaReso.Get("N_Mask").TweenForGra();
  613. Tween tween = ManaReso.Get("F_Manage0").TweenForVec();
  614. tween.AddEventOnetime
  615. (
  616. EventType.ForwardFinish,
  617. () =>
  618. {
  619. Auxiliary.Instance.DelayCall
  620. (
  621. () =>
  622. {
  623. ManaReso.Get<Button>("F_Elf").onClick.Invoke();
  624. },
  625. 0.25f
  626. );
  627. Auxiliary.Instance.DelayCall
  628. (
  629. () =>
  630. {
  631. Transform item = ManaData.SkillDic["Ability5"].SkillItem;
  632. Tutorial.HightScreen(item.FindChild("Arrow0"), item.FindChild("Arrow1"), item.FindChild("Btn"));
  633. },
  634. 0.5f
  635. );
  636. }
  637. );
  638. Ability skill = (Ability) ManaData.SkillDic["Ability5"];
  639. skill.ItemBtn.AddButtonEventOnetime
  640. (
  641. () =>
  642. {
  643. Tutorial.HightDisable(0, false);
  644. }
  645. );
  646. tween = ManaReso.Get("Fe_Info").GetTweenCG();
  647. tween.AddEventOnetime
  648. (
  649. EventType.ForwardFinish,
  650. () =>
  651. {
  652. Tutorial.HightScreen(ManaReso.Get("Fe_Arrow0"), ManaReso.Get("Fe_Arrow1"), ManaReso.Get("Fe_Btn"));
  653. ManaReso.AddButtonEventOnetime
  654. (
  655. "Fe_Btn",
  656. () =>
  657. {
  658. EndB();
  659. }
  660. );
  661. }
  662. );
  663. }
  664. public static void PrepareStepB3()
  665. {
  666. Tween tween = ManaReso.Get("Fe_Info").TweenBacCG();
  667. tween.AddEventOnetime
  668. (
  669. EventType.BackwardFinish,
  670. () =>
  671. {
  672. Auxiliary.Instance.DelayCall
  673. (
  674. () =>
  675. {
  676. ManaReso.Get<Button>("F_Elf").onClick.Invoke();
  677. },
  678. 0.25f
  679. );
  680. Auxiliary.Instance.DelayCall
  681. (
  682. () =>
  683. {
  684. Transform item = ManaData.SkillDic["Ability5"].SkillItem;
  685. Tutorial.HightScreen(item.FindChild("Arrow0"), item.FindChild("Arrow1"), item.FindChild("Btn"));
  686. },
  687. 0.5f
  688. );
  689. }
  690. );
  691. Ability skill = (Ability)ManaData.SkillDic["Ability5"];
  692. skill.ItemBtn.AddButtonEventOnetime
  693. (
  694. () =>
  695. {
  696. Tutorial.HightDisable(0, false);
  697. }
  698. );
  699. tween = ManaReso.Get("Fe_Info").GetTweenCG();
  700. tween.AddEventOnetime
  701. (
  702. EventType.ForwardFinish,
  703. () =>
  704. {
  705. Tutorial.HightScreen(ManaReso.Get("Fe_Arrow0"), ManaReso.Get("Fe_Arrow1"), ManaReso.Get("Fe_Btn"));
  706. ManaReso.AddButtonEventOnetime
  707. (
  708. "Fe_Btn",
  709. () =>
  710. {
  711. EndB();
  712. }
  713. );
  714. }
  715. );
  716. }
  717. }