ExtensionAnim.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. using UnityEngine;
  2. using UnityEngine.Events;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. public static class ExtensionAnim
  6. {
  7. #region Move
  8. public static Shake Shake(this Component comp, float duration, int repeat, Vector3 strength, Curve curve)
  9. {
  10. return ManaAnim.Shake(comp.transform, duration, repeat, strength, curve);
  11. }
  12. public static Move2D Move2D(this Component comp, Vector3 destination, float duration, bool local, Curve curve)
  13. {
  14. return ManaAnim.Move2D(comp.transform, destination, duration, local, curve);
  15. }
  16. public static Move3D Move3D(this Component comp, Vector3 destination, float duration, bool local, Curve curve)
  17. {
  18. return ManaAnim.Move3D(comp.transform, destination, duration, local, curve);
  19. }
  20. public static Move2D MoveOffset2D(this Component comp, Vector3 offset, float duration, bool local, Curve curve)
  21. {
  22. return ManaAnim.MoveOffset2D(comp.transform, offset, duration, local, curve);
  23. }
  24. public static Move3D MoveOffset3D(this Component comp, Vector3 offset, float duration, bool local, Curve curve)
  25. {
  26. return ManaAnim.MoveOffset3D(comp.transform, offset, duration, local, curve);
  27. }
  28. public static Zoom2D Zoom2D(this Transform target, float origin, float destination, float duration, float stay, Transform targetZoom, Curve curve)
  29. {
  30. return ManaAnim.Zoom2D(target, origin, destination, duration, stay, targetZoom, curve);
  31. }
  32. public static Zoom2D Zoom2D(this Transform target, float destination, float duration, float stay, Transform targetZoom, Curve curve)
  33. {
  34. return ManaAnim.Zoom2D(target, destination, duration, stay, targetZoom, curve);
  35. }
  36. public static Shake GetShake(this Component comp)
  37. {
  38. return ManaAnim.GetShake(comp.transform);
  39. }
  40. public static Move2D GetMove2D(this Component comp)
  41. {
  42. return ManaAnim.GetMove2D(comp.transform);
  43. }
  44. public static Move3D GetMove3D(this Component comp)
  45. {
  46. return ManaAnim.GetMove3D(comp.transform);
  47. }
  48. public static Zoom2D GetZoom2D(this Component comp)
  49. {
  50. return ManaAnim.GetZoom2D(comp.transform);
  51. }
  52. public static Shake CreateShake(this Component comp)
  53. {
  54. return ManaAnim.CreateShake(comp.transform);
  55. }
  56. public static Move2D CreateMove2D(this Component comp)
  57. {
  58. return ManaAnim.CreateMove2D(comp.transform);
  59. }
  60. public static Move3D CreateMove3D(this Component comp)
  61. {
  62. return ManaAnim.CreateMove3D(comp.transform);
  63. }
  64. public static Zoom2D CreateZoom2D(this Component comp)
  65. {
  66. return ManaAnim.CreateZoom2D(comp.transform);
  67. }
  68. #endregion
  69. #region Tween
  70. public static TweenSr TweenForSr(this Component comp)
  71. {
  72. return ManaAnim.TweenForSr(comp.transform);
  73. }
  74. public static TweenRenderer TweenForRenderer(this Renderer comp)
  75. {
  76. return ManaAnim.TweenForRenderer(comp);
  77. }
  78. public static TweenCG TweenForCG(this Component comp)
  79. {
  80. return ManaAnim.TweenForCG(comp.transform);
  81. }
  82. public static TweenVec TweenForVec(this Component comp)
  83. {
  84. return ManaAnim.TweenForVec(comp.transform);
  85. }
  86. public static TweenEuler TweenForEuler(this Component comp)
  87. {
  88. return ManaAnim.TweenForEuler(comp.transform);
  89. }
  90. public static TweenGra TweenForGra(this Component comp)
  91. {
  92. return ManaAnim.TweenForGra(comp.transform);
  93. }
  94. public static TweenFont TweenForFont(this Component comp)
  95. {
  96. return ManaAnim.TweenForFont(comp.transform);
  97. }
  98. public static TweenRect TweenForRect(this Component comp)
  99. {
  100. return ManaAnim.TweenForRect(comp.transform);
  101. }
  102. public static TweenScale TweenForScale(this Component comp)
  103. {
  104. return ManaAnim.TweenForScale(comp.transform);
  105. }
  106. public static TweenAudio TweenForAudio(this Component comp)
  107. {
  108. return ManaAnim.TweenForAudio(comp.transform);
  109. }
  110. public static TweenAudio TweenForAudio(this AudioSource audioSource)
  111. {
  112. return ManaAnim.TweenForAudio(audioSource);
  113. }
  114. public static TweenOutline TweenForOutline(this Component comp)
  115. {
  116. return ManaAnim.TweenForOutline(comp.transform);
  117. }
  118. public static TweenNumber TweenForNumber(this Component comp)
  119. {
  120. return ManaAnim.TweenForNumber(comp.transform);
  121. }
  122. public static TweenMatFloat TweenForMatFloat(this MaterialUnit materialUnit)
  123. {
  124. return ManaAnim.TweenForMatFloat(materialUnit);
  125. }
  126. public static TweenMatColor TweenForMatColor(this MaterialUnit materialUnit)
  127. {
  128. return ManaAnim.TweenForMatColor(materialUnit);
  129. }
  130. public static TweenRenderer TweenBacRenderer(this Renderer comp)
  131. {
  132. return ManaAnim.TweenBacRenderer(comp);
  133. }
  134. public static TweenSr TweenBacSr(this Component comp)
  135. {
  136. return ManaAnim.TweenBacSr(comp.transform);
  137. }
  138. public static TweenCG TweenBacCG(this Component comp)
  139. {
  140. return ManaAnim.TweenBacCG(comp.transform);
  141. }
  142. public static TweenVec TweenBacVec(this Component comp)
  143. {
  144. return ManaAnim.TweenBacVec(comp.transform);
  145. }
  146. public static TweenEuler TweenBacEuler(this Component comp)
  147. {
  148. return ManaAnim.TweenBacEuler(comp.transform);
  149. }
  150. public static TweenGra TweenBacGra(this Component comp)
  151. {
  152. return ManaAnim.TweenBacGra(comp.transform);
  153. }
  154. public static TweenFont TweenBacFont(this Component comp)
  155. {
  156. return ManaAnim.TweenBacFont(comp.transform);
  157. }
  158. public static TweenRect TweenBacRect(this Component comp)
  159. {
  160. return ManaAnim.TweenBacRect(comp.transform);
  161. }
  162. public static TweenScale TweenBacScale(this Component comp)
  163. {
  164. return ManaAnim.TweenBacScale(comp.transform);
  165. }
  166. public static TweenAudio TweenBacAudio(this Component comp)
  167. {
  168. return ManaAnim.TweenBacAudio(comp.transform);
  169. }
  170. public static TweenAudio TweenBacAudio(this AudioSource audioSource)
  171. {
  172. return ManaAnim.TweenBacAudio(audioSource);
  173. }
  174. public static TweenOutline TweenBacOutline(this Component comp)
  175. {
  176. return ManaAnim.TweenBacOutline(comp.transform);
  177. }
  178. public static TweenNumber TweenBacNumber(this Component comp)
  179. {
  180. return ManaAnim.TweenBacNumber(comp.transform);
  181. }
  182. public static TweenMatFloat TweenBacMatFloat(this MaterialUnit materialUnit)
  183. {
  184. return ManaAnim.TweenBacMatFloat(materialUnit);
  185. }
  186. public static TweenMatColor TweenBacMatColor(this MaterialUnit materialUnit)
  187. {
  188. return ManaAnim.TweenBacMatColor(materialUnit);
  189. }
  190. public static TweenRenderer TweenReForRenderer(this Renderer comp)
  191. {
  192. return ManaAnim.TweenReForRenderer(comp);
  193. }
  194. public static TweenSr TweenReForSr(this Component comp)
  195. {
  196. return ManaAnim.TweenReForSr(comp.transform);
  197. }
  198. public static TweenCG TweenReForCG(this Component comp)
  199. {
  200. return ManaAnim.TweenReForCG(comp.transform);
  201. }
  202. public static TweenVec TweenReForVec(this Component comp)
  203. {
  204. return ManaAnim.TweenReForVec(comp.transform);
  205. }
  206. public static TweenEuler TweenReForEuler(this Component comp)
  207. {
  208. return ManaAnim.TweenReForEuler(comp.transform);
  209. }
  210. public static TweenGra TweenReForGra(this Component comp)
  211. {
  212. return ManaAnim.TweenReForGra(comp.transform);
  213. }
  214. public static TweenFont TweenReForFont(this Component comp)
  215. {
  216. return ManaAnim.TweenReForFont(comp.transform);
  217. }
  218. public static TweenRect TweenReForRect(this Component comp)
  219. {
  220. return ManaAnim.TweenReForRect(comp.transform);
  221. }
  222. public static TweenScale TweenReForScale(this Component comp)
  223. {
  224. return ManaAnim.TweenReForScale(comp.transform);
  225. }
  226. public static TweenAudio TweenReForAudio(this Component comp)
  227. {
  228. return ManaAnim.TweenReForAudio(comp.transform);
  229. }
  230. public static TweenAudio TweenReForAudio(this AudioSource audioSource)
  231. {
  232. return ManaAnim.TweenReForAudio(audioSource);
  233. }
  234. public static TweenOutline TweenReForOutline(this Component comp)
  235. {
  236. return ManaAnim.TweenReForOutline(comp.transform);
  237. }
  238. public static TweenNumber TweenReForNumber(this Component comp)
  239. {
  240. return ManaAnim.TweenReForNumber(comp.transform);
  241. }
  242. public static TweenMatFloat TweenReForMatFloat(this MaterialUnit materialUnit)
  243. {
  244. return ManaAnim.TweenReForMatFloat(materialUnit);
  245. }
  246. public static TweenMatColor TweenReForMatColor(this MaterialUnit materialUnit)
  247. {
  248. return ManaAnim.TweenReForMatColor(materialUnit);
  249. }
  250. public static TweenRenderer TweenReBacRenderer(this Renderer comp)
  251. {
  252. return ManaAnim.TweenReBacRenderer(comp);
  253. }
  254. public static TweenSr TweenReBacSr(this Component comp)
  255. {
  256. return ManaAnim.TweenReBacSr(comp.transform);
  257. }
  258. public static TweenCG TweenReBacCG(this Component comp)
  259. {
  260. return ManaAnim.TweenReBacCG(comp.transform);
  261. }
  262. public static TweenVec TweenReBacVec(this Component comp)
  263. {
  264. return ManaAnim.TweenReBacVec(comp.transform);
  265. }
  266. public static TweenEuler TweenReBacEuler(this Component comp)
  267. {
  268. return ManaAnim.TweenReBacEuler(comp.transform);
  269. }
  270. public static TweenGra TweenReBacGra(this Component comp)
  271. {
  272. return ManaAnim.TweenReBacGra(comp.transform);
  273. }
  274. public static TweenFont TweenReBacFont(this Component comp)
  275. {
  276. return ManaAnim.TweenReBacFont(comp.transform);
  277. }
  278. public static TweenRect TweenReBacRect(this Component comp)
  279. {
  280. return ManaAnim.TweenReBacRect(comp.transform);
  281. }
  282. public static TweenScale TweenReBacScale(this Component comp)
  283. {
  284. return ManaAnim.TweenReBacScale(comp.transform);
  285. }
  286. public static TweenAudio TweenReBacAudio(this Component comp)
  287. {
  288. return ManaAnim.TweenReBacAudio(comp.transform);
  289. }
  290. public static TweenAudio TweenReBacAudio(this AudioSource audioSource)
  291. {
  292. return ManaAnim.TweenReBacAudio(audioSource);
  293. }
  294. public static TweenOutline TweenReBacOutline(this Component comp)
  295. {
  296. return ManaAnim.TweenReBacOutline(comp.transform);
  297. }
  298. public static TweenNumber TweenReBacNumber(this Component comp)
  299. {
  300. return ManaAnim.TweenReBacNumber(comp.transform);
  301. }
  302. public static TweenMatFloat TweenReBacMatFloat(this MaterialUnit materialUnit)
  303. {
  304. return ManaAnim.TweenReBacMatFloat(materialUnit);
  305. }
  306. public static TweenMatColor TweenReBacMatColor(this MaterialUnit materialUnit)
  307. {
  308. return ManaAnim.TweenReBacMatColor(materialUnit);
  309. }
  310. public static TweenRenderer GetTweenRenderer(this Renderer comp)
  311. {
  312. return ManaAnim.GetTweenRenderer(comp);
  313. }
  314. public static TweenSr GetTweenSr(this Component comp)
  315. {
  316. return ManaAnim.GetTweenSr(comp.transform);
  317. }
  318. public static TweenCG GetTweenCG(this Component comp)
  319. {
  320. return ManaAnim.GetTweenCG(comp.transform);
  321. }
  322. public static TweenVec GetTweenVec(this Component comp)
  323. {
  324. return ManaAnim.GetTweenVec(comp.transform);
  325. }
  326. public static TweenEuler GetTweenEuler(this Component comp)
  327. {
  328. return ManaAnim.GetTweenEuler(comp.transform);
  329. }
  330. public static TweenGra GetTweenGra(this Component comp)
  331. {
  332. return ManaAnim.GetTweenGra(comp.transform);
  333. }
  334. public static TweenFont GetTweenFont(this Component comp)
  335. {
  336. return ManaAnim.GetTweenFont(comp.transform);
  337. }
  338. public static TweenRect GetTweenRect(this Component comp)
  339. {
  340. return ManaAnim.GetTweenRect(comp.transform);
  341. }
  342. public static TweenScale GetTweenScale(this Component comp)
  343. {
  344. return ManaAnim.GetTweenScale(comp.transform);
  345. }
  346. public static TweenAudio GetTweenAudio(this Component comp)
  347. {
  348. return ManaAnim.GetTweenAudio(comp.transform);
  349. }
  350. public static TweenAudio GetTweenAudio(this AudioSource audioSource)
  351. {
  352. return ManaAnim.GetTweenAudio(audioSource);
  353. }
  354. public static TweenOutline GetTweenOutline(this Component comp)
  355. {
  356. return ManaAnim.GetTweenOutline(comp.transform);
  357. }
  358. public static TweenNumber GetTweenNumber(this Component comp)
  359. {
  360. return ManaAnim.GetTweenNumber(comp.transform);
  361. }
  362. public static TweenMatFloat GetTweenMatFloat(this MaterialUnit materialUnit)
  363. {
  364. return ManaAnim.GetTweenMatFloat(materialUnit);
  365. }
  366. public static TweenMatColor GetTweenMatColor(this MaterialUnit materialUnit)
  367. {
  368. return ManaAnim.GetTweenMatColor(materialUnit);
  369. }
  370. public static TweenRenderer CreateTweenRenderer(this Renderer comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  371. {
  372. return ManaAnim.CreateTweenRenderer(comp, origin, destination, duration, originActive, destActive, curve, cg, group);
  373. }
  374. public static TweenRenderer CreateTweenRenderer(this Renderer comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  375. {
  376. return ManaAnim.CreateTweenRenderer(comp, destination, duration, originActive, destActive, curve, cg, group);
  377. }
  378. public static TweenRenderer CreateTweenRenderer(this Renderer comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  379. {
  380. return ManaAnim.CreateTweenRenderer(comp, origin, destination, duration, originActive, destActive, curve, cg, group);
  381. }
  382. public static TweenRenderer CreateTweenRenderer(this Renderer comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  383. {
  384. return ManaAnim.CreateTweenRenderer(comp, destination, duration, originActive, destActive, curve, cg, group);
  385. }
  386. public static TweenSr CreateTweenSr(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  387. {
  388. return ManaAnim.CreateTweenSr(comp.transform, origin, destination, duration, originActive, destActive, curve, cg, group);
  389. }
  390. public static TweenSr CreateTweenSr(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  391. {
  392. return ManaAnim.CreateTweenSr(comp.transform, destination, duration, originActive, destActive, curve, cg, group);
  393. }
  394. public static TweenSr CreateTweenSr(this Component comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  395. {
  396. return ManaAnim.CreateTweenSr(comp.transform, origin, destination, duration, originActive, destActive, curve, cg, group);
  397. }
  398. public static TweenSr CreateTweenSr(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
  399. {
  400. return ManaAnim.CreateTweenSr(comp.transform, destination, duration, originActive, destActive, curve, cg, group);
  401. }
  402. public static TweenCG CreateTweenCG(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve)
  403. {
  404. return ManaAnim.CreateTweenCG(comp.transform, origin, destination, duration, originActive, destActive, curve);
  405. }
  406. public static TweenCG CreateTweenCG(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve)
  407. {
  408. return ManaAnim.CreateTweenCG(comp.transform, destination, duration, originActive, destActive, curve);
  409. }
  410. public static TweenGra CreateTweenGra(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  411. {
  412. return ManaAnim.CreateTweenGra(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  413. }
  414. public static TweenGra CreateTweenGra(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  415. {
  416. return ManaAnim.CreateTweenGra(comp.transform, destination, duration, originActive, destActive, curve, cg);
  417. }
  418. public static TweenGra CreateTweenGra(this Component comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  419. {
  420. return ManaAnim.CreateTweenGra(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  421. }
  422. public static TweenGra CreateTweenGra(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  423. {
  424. return ManaAnim.CreateTweenGra(comp.transform, destination, duration, originActive, destActive, curve, cg);
  425. }
  426. public static TweenVec CreateTweenVec2D(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  427. {
  428. return ManaAnim.CreateTweenVec2D(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg);
  429. }
  430. public static TweenVec CreateTweenVec2D(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  431. {
  432. return ManaAnim.CreateTweenVec2D(comp.transform, destination, duration, local, originActive, destActive, curve, cg);
  433. }
  434. public static TweenVec CreateTweenVec3D(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  435. {
  436. return ManaAnim.CreateTweenVec3D(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg);
  437. }
  438. public static TweenVec CreateTweenVec3D(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  439. {
  440. return ManaAnim.CreateTweenVec3D(comp.transform, destination, duration, local, originActive, destActive, curve, cg);
  441. }
  442. public static TweenVec CreateTweenVecOffset2D(this Component comp, Vector3 offset, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  443. {
  444. return ManaAnim.CreateTweenVecOffset2D(comp.transform, offset, duration, local, originActive, destActive, curve, cg);
  445. }
  446. public static TweenVec CreateTweenVecOffset3D(this Component comp, Vector3 offset, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  447. {
  448. return ManaAnim.CreateTweenVecOffset3D(comp.transform, offset, duration, local, originActive, destActive, curve, cg);
  449. }
  450. public static TweenEuler CreateTweenEuler(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  451. {
  452. return ManaAnim.CreateTweenEuler(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg);
  453. }
  454. public static TweenEuler CreateTweenEuler(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
  455. {
  456. return ManaAnim.CreateTweenEuler(comp.transform, destination, duration, local, originActive, destActive, curve, cg);
  457. }
  458. public static TweenFont CreateTweenFont(this Component comp, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  459. {
  460. return ManaAnim.CreateTweenFont(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  461. }
  462. public static TweenFont CreateTweenFont(this Component comp, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  463. {
  464. return ManaAnim.CreateTweenFont(comp.transform, destination, duration, originActive, destActive, curve, cg);
  465. }
  466. public static TweenRect CreateTweenRect(this Component comp, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  467. {
  468. return ManaAnim.CreateTweenRect(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  469. }
  470. public static TweenRect CreateTweenRect(this Component comp, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  471. {
  472. return ManaAnim.CreateTweenRect(comp.transform, destination, duration, originActive, destActive, curve, cg);
  473. }
  474. public static TweenScale CreateTweenScale(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  475. {
  476. return ManaAnim.CreateTweenScale(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  477. }
  478. public static TweenScale CreateTweenScale(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  479. {
  480. return ManaAnim.CreateTweenScale(comp.transform, destination, duration, originActive, destActive, curve, cg);
  481. }
  482. public static TweenScale CreateTweenScale(this Component comp, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  483. {
  484. return ManaAnim.CreateTweenScale(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  485. }
  486. public static TweenScale CreateTweenScale(this Component comp, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  487. {
  488. return ManaAnim.CreateTweenScale(comp.transform, destination, duration, originActive, destActive, curve, cg);
  489. }
  490. public static TweenAudio CreateTweenAudio(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  491. {
  492. return ManaAnim.CreateTweenAudio(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  493. }
  494. public static TweenAudio CreateTweenAudio(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  495. {
  496. return ManaAnim.CreateTweenAudio(comp.transform, destination, duration, originActive, destActive, curve, cg);
  497. }
  498. public static TweenAudio CreateTweenAudio(this AudioSource audioSource, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  499. {
  500. return ManaAnim.CreateTweenAudio(audioSource, origin, destination, duration, originActive, destActive, curve, cg);
  501. }
  502. public static TweenAudio CreateTweenAudio(this AudioSource audioSource, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  503. {
  504. return ManaAnim.CreateTweenAudio(audioSource, destination, duration, originActive, destActive, curve, cg);
  505. }
  506. public static TweenOutline CreateTweenOutline(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  507. {
  508. return ManaAnim.CreateTweenOutline(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  509. }
  510. public static TweenOutline CreateTweenOutline(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  511. {
  512. return ManaAnim.CreateTweenOutline(comp.transform, destination, duration, originActive, destActive, curve, cg);
  513. }
  514. public static TweenOutline CreateTweenOutline(this Component comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  515. {
  516. return ManaAnim.CreateTweenOutline(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  517. }
  518. public static TweenOutline CreateTweenOutline(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  519. {
  520. return ManaAnim.CreateTweenOutline(comp.transform, destination, duration, originActive, destActive, curve, cg);
  521. }
  522. public static TweenNumber CreateTweenNumber(this Component comp, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  523. {
  524. return ManaAnim.CreateTweenNumber(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
  525. }
  526. public static TweenNumber CreateTweenNumber(this Component comp, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  527. {
  528. return ManaAnim.CreateTweenNumber(comp.transform, destination, duration, originActive, destActive, curve, cg);
  529. }
  530. public static TweenMatColor CreateTweenMatColor(this MaterialUnit materialUnit, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  531. {
  532. return ManaAnim.CreateTweenMatColor(materialUnit, origin, destination, duration, originActive, destActive, curve, cg);
  533. }
  534. public static TweenMatColor CreateTweenMatColor(this MaterialUnit materialUnit, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  535. {
  536. return ManaAnim.CreateTweenMatColor(materialUnit, destination, duration, originActive, destActive, curve, cg);
  537. }
  538. public static TweenMatFloat CreateTweenMatFloat(this MaterialUnit materialUnit, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  539. {
  540. return ManaAnim.CreateTweenMatFloat(materialUnit, origin, destination, duration, originActive, destActive, curve, cg);
  541. }
  542. public static TweenMatFloat CreateTweenMatFloat(this MaterialUnit materialUnit, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
  543. {
  544. return ManaAnim.CreateTweenMatFloat(materialUnit, destination, duration, originActive, destActive, curve, cg);
  545. }
  546. #endregion
  547. #region Stream
  548. public static StreamScale StreamForScale(this Component comp)
  549. {
  550. return ManaAnim.StreamForScale(comp.transform);
  551. }
  552. public static StreamScale StreamBacScale(this Component comp)
  553. {
  554. return ManaAnim.StreamBacScale(comp.transform);
  555. }
  556. public static StreamScale StreamReForScale(this Component comp)
  557. {
  558. return ManaAnim.StreamReForScale(comp.transform);
  559. }
  560. public static StreamScale StreamReBacScale(this Component comp)
  561. {
  562. return ManaAnim.StreamReBacScale(comp.transform);
  563. }
  564. public static StreamScale GetStreamScale(this Component comp)
  565. {
  566. return ManaAnim.GetStreamScale(comp.transform);
  567. }
  568. public static StreamScale CreateStreamScale(this Component comp, List<float> delayList, List<float> durationList, List<VecPair> destKvList, bool originActive, bool destActive, Curve curve, bool cg = false, List<UnityAction> startActionList = null, List<UnityAction> finishActionList = null)
  569. {
  570. return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destKvList, originActive, destActive, curve, cg, startActionList, finishActionList);
  571. }
  572. public static StreamScale CreateStreamScale(this Component comp, List<float> delayList, List<float> durationList, List<Vector3> destList, bool originActive, bool destActive, Curve curve, bool cg = false, List<UnityAction> startActionList = null, List<UnityAction> finishActionList = null)
  573. {
  574. return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destList, originActive, destActive, curve, cg, startActionList, finishActionList);
  575. }
  576. #endregion
  577. }