Advertisement
MaoChessy

Untitled

Nov 30th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. #pragma warning disable
  2. using UnityEngine;
  3. using System.Collections.Generic;
  4.  
  5. namespace MaxyGames.Generated {
  6. public class Enemy_BT_2 : MaxyGames.RuntimeBehaviour {
  7. public BehTreeBrick.Action.SearcherTargetInRadius SearchTargetInRaduis;
  8. public Gameplay.Units.TargetContainer TargetContainer;
  9. public Gameplay.DamageBy DamageBy;
  10. public BehTreeBrick.Conditrion.RicherTarget RichTarget;
  11. public Gameplay.AnimatorApplayCallback AnimatorApplayCallback;
  12. public string Name_Anim_Move = "";
  13. public Gameplay.HubObject.Beh.Attack.AbsAttack Attack;
  14. public Gameplay.Units.Beh.RotateToTargetInMemory Rotate;
  15. public Gameplay.AiPathShell AiPAth;
  16. public Gameplay.AbsSetterTargetAI Setter_Ai_Target;
  17. private MaxyGames.Runtime.EventCoroutine coroutine1;
  18. private MaxyGames.Runtime.EventCoroutine coroutine2;
  19. private MaxyGames.Runtime.EventCoroutine coroutine3;
  20. private MaxyGames.Runtime.EventCoroutine coroutine4;
  21. private MaxyGames.Runtime.EventCoroutine coroutine5;
  22. private MaxyGames.Runtime.EventCoroutine coroutine6;
  23. private MaxyGames.Runtime.EventCoroutine coroutine7;
  24. private MaxyGames.Runtime.EventCoroutine coroutine8;
  25. private MaxyGames.Runtime.EventCoroutine coroutine9;
  26. private MaxyGames.Runtime.EventCoroutine coroutine10;
  27. private MaxyGames.Runtime.EventCoroutine coroutine11;
  28. private MaxyGames.Runtime.EventCoroutine coroutine12;
  29. private MaxyGames.Runtime.EventCoroutine coroutine13;
  30. private MaxyGames.Runtime.EventCoroutine coroutine14;
  31. private MaxyGames.Runtime.EventCoroutine coroutine15;
  32. private MaxyGames.Runtime.EventCoroutine coroutine16;
  33. private MaxyGames.Runtime.EventCoroutine coroutine17;
  34. private MaxyGames.Runtime.EventCoroutine coroutine18;
  35. private MaxyGames.Runtime.EventCoroutine coroutine19;
  36. private MaxyGames.Runtime.EventCoroutine coroutine20;
  37. private MaxyGames.Runtime.EventCoroutine coroutine21;
  38. private MaxyGames.Runtime.EventCoroutine coroutine22;
  39. private MaxyGames.Runtime.EventCoroutine coroutine23;
  40. private MaxyGames.Runtime.EventCoroutine coroutine24;
  41. private MaxyGames.Runtime.EventCoroutine coroutine25;
  42. private MaxyGames.Runtime.EventCoroutine coroutine26;
  43. private MaxyGames.Runtime.EventCoroutine coroutine27;
  44.  
  45. void FixedUpdate() {
  46. coroutine27.Run();
  47. }
  48.  
  49. public override void OnAwake() {
  50. coroutine1 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-687154));
  51. coroutine2 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679176));
  52. coroutine3 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679164));
  53. coroutine4 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679170));
  54. coroutine5 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-680048));
  55. coroutine6 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679120));
  56. coroutine7 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155702));
  57. coroutine8 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679138));
  58. coroutine9 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155764));
  59. coroutine10 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679156));
  60. coroutine11 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155812));
  61. coroutine12 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679224));
  62. coroutine13 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679254));
  63. coroutine14 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679194));
  64. coroutine15 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679206));
  65. coroutine16 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679208));
  66. coroutine17 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679210));
  67. coroutine18 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155860));
  68. coroutine19 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155872));
  69. coroutine20 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155890));
  70. coroutine21 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679236));
  71. coroutine22 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679238));
  72. coroutine23 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679240));
  73. coroutine24 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155924));
  74. coroutine25 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155942));
  75. coroutine26 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-1155966));
  76. coroutine27 = new MaxyGames.Runtime.EventCoroutine(this, _ExecuteCoroutineEvent(-679108));
  77. }
  78.  
  79. System.Collections.IEnumerable _ExecuteCoroutineEvent(int uid) {
  80. switch(uid) {
  81. case -679108: {
  82. yield return coroutine1.Run();
  83. if(coroutine1.IsFailure){
  84. yield return false;
  85. }
  86. yield return coroutine2.Run();
  87. if(coroutine2.IsFailure){
  88. yield return false;
  89. }
  90. }
  91. break;
  92. case -687154: {
  93. yield return coroutine3.Run();
  94. if(coroutine3.IsSuccess) {
  95. yield return true;
  96. }
  97. yield return coroutine4.Run();
  98. if(coroutine4.IsSuccess) {
  99. yield return true;
  100. }
  101. yield return coroutine5.Run();
  102. if(coroutine5.IsSuccess) {
  103. yield return true;
  104. }
  105. yield return false;
  106. }
  107. break;
  108. case -679176: {
  109. if(RichTarget.IsRich()) {
  110. yield return coroutine12.Run();
  111. yield return true;
  112. } else {
  113. yield return coroutine13.Run();
  114. yield return false;
  115. }
  116. }
  117. break;
  118. case -679164: {
  119. if(DamageBy.HasTarget) {
  120. yield return coroutine6.Run();
  121. yield return true;
  122. } else {
  123. yield return false;
  124. }
  125. }
  126. break;
  127. case -679170: {
  128. if(SearchTargetInRaduis.HasAnyTargetInZone) {
  129. yield return coroutine8.Run();
  130. yield return true;
  131. } else {
  132. yield return false;
  133. }
  134. }
  135. break;
  136. case -680048: {
  137. if(true) {
  138. yield return coroutine10.Run();
  139. yield return true;
  140. } else {
  141. yield return false;
  142. }
  143. }
  144. break;
  145. case -1155696: {
  146. yield return coroutine7.Run();
  147. yield return true;
  148. }
  149. break;
  150. case -1155702: {
  151. TargetContainer.SetTargetAttack(DamageBy.Target);
  152. }
  153. break;
  154. case -1155764: {
  155. TargetContainer.SetTargetAttack(SearchTargetInRaduis.GetOne());
  156. }
  157. break;
  158. case -1155770: {
  159. SearchTargetInRaduis.GetOne();
  160. }
  161. break;
  162. case -1155776: {
  163. yield return coroutine9.Run();
  164. yield return true;
  165. }
  166. break;
  167. case -1155800: {
  168. Plugins.DIContainer.DiBox.MainBox.ResolveSingle<Factorys.BuildContainer>("");
  169. }
  170. break;
  171. case -1155806: {
  172. yield return coroutine11.Run();
  173. yield return true;
  174. }
  175. break;
  176. case -1155812: {
  177. TargetContainer.SetTargetAttack(Plugins.DIContainer.DiBox.MainBox.ResolveSingle<Factorys.BuildContainer>("").Neksus);
  178. }
  179. break;
  180. case -1155842: {
  181. yield return coroutine18.Run();
  182. yield return true;
  183. }
  184. break;
  185. case -1155860: {
  186. Attack.Attack();
  187. }
  188. break;
  189. case -1155866: {
  190. yield return coroutine19.Run();
  191. yield return true;
  192. }
  193. break;
  194. case -1155872: {
  195. Rotate.Rotate();
  196. }
  197. break;
  198. case -1155878: {
  199. yield return coroutine20.Run();
  200. yield return true;
  201. }
  202. break;
  203. case -1155890: {
  204. AiPAth.Off();
  205. }
  206. break;
  207. case -679194: {
  208. yield return coroutine15.Run();
  209. if(coroutine15.IsFailure){
  210. yield return false;
  211. }
  212. yield return coroutine16.Run();
  213. if(coroutine16.IsFailure){
  214. yield return false;
  215. }
  216. yield return coroutine17.Run();
  217. if(coroutine17.IsFailure){
  218. yield return false;
  219. }
  220. }
  221. break;
  222. case -679206: {
  223. yield return coroutine18.Run();
  224. yield return true;
  225. }
  226. break;
  227. case -679208: {
  228. yield return coroutine19.Run();
  229. yield return true;
  230. }
  231. break;
  232. case -679210: {
  233. yield return coroutine20.Run();
  234. yield return true;
  235. }
  236. break;
  237. case -679254: {
  238. yield return coroutine21.Run();
  239. if(coroutine21.IsFailure){
  240. yield return false;
  241. }
  242. yield return coroutine22.Run();
  243. if(coroutine22.IsFailure){
  244. yield return false;
  245. }
  246. yield return coroutine23.Run();
  247. if(coroutine23.IsFailure){
  248. yield return false;
  249. }
  250. }
  251. break;
  252. case -679236: {
  253. yield return coroutine24.Run();
  254. yield return true;
  255. }
  256. break;
  257. case -679238: {
  258. yield return coroutine25.Run();
  259. yield return true;
  260. }
  261. break;
  262. case -679240: {
  263. yield return coroutine26.Run();
  264. yield return true;
  265. }
  266. break;
  267. case -1155924: {
  268. Setter_Ai_Target.SetPath();
  269. }
  270. break;
  271. case -1155942: {
  272. AnimatorApplayCallback.StartAnimation(Name_Anim_Move);
  273. }
  274. break;
  275. case -1155960: {
  276. yield return coroutine24.Run();
  277. yield return true;
  278. }
  279. break;
  280. case -1155966: {
  281. AiPAth.On();
  282. }
  283. break;
  284. case -1155972: {
  285. yield return coroutine25.Run();
  286. yield return true;
  287. }
  288. break;
  289. case -1155978: {
  290. yield return coroutine26.Run();
  291. yield return true;
  292. }
  293. break;
  294. case -679120: {
  295. yield return coroutine7.Run();
  296. yield return true;
  297. }
  298. break;
  299. case -679138: {
  300. yield return coroutine9.Run();
  301. yield return true;
  302. }
  303. break;
  304. case -679156: {
  305. yield return coroutine11.Run();
  306. yield return true;
  307. }
  308. break;
  309. case -679188: {
  310. RichTarget.IsRich();
  311. }
  312. break;
  313. case -679224: {
  314. if(Attack.InProgress) {
  315. yield return true;
  316. } else {
  317. yield return coroutine14.Run();
  318. yield return false;
  319. }
  320. }
  321. break;
  322. }
  323. yield break;
  324. }
  325. }
  326. }
  327.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement