123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595 |
- using UnityEngine;
- using UnityEngine.Events;
- using System.Collections;
- using System.Collections.Generic;
- public static class ExtensionAnim
- {
- #region Move
- public static Shake Shake(this Component comp, float duration, int repeat, Vector3 strength, Curve curve)
- {
- return ManaAnim.Shake(comp.transform, duration, repeat, strength, curve);
- }
- public static Move2D Move2D(this Component comp, Vector3 destination, float duration, bool local, Curve curve)
- {
- return ManaAnim.Move2D(comp.transform, destination, duration, local, curve);
- }
- public static Move3D Move3D(this Component comp, Vector3 destination, float duration, bool local, Curve curve)
- {
- return ManaAnim.Move3D(comp.transform, destination, duration, local, curve);
- }
- public static Move2D MoveOffset2D(this Component comp, Vector3 offset, float duration, bool local, Curve curve)
- {
- return ManaAnim.MoveOffset2D(comp.transform, offset, duration, local, curve);
- }
- public static Move3D MoveOffset3D(this Component comp, Vector3 offset, float duration, bool local, Curve curve)
- {
- return ManaAnim.MoveOffset3D(comp.transform, offset, duration, local, curve);
- }
- public static Zoom2D Zoom2D(this Transform target, float origin, float destination, float duration, float stay, Transform targetZoom, Curve curve)
- {
- return ManaAnim.Zoom2D(target, origin, destination, duration, stay, targetZoom, curve);
- }
- public static Zoom2D Zoom2D(this Transform target, float destination, float duration, float stay, Transform targetZoom, Curve curve)
- {
- return ManaAnim.Zoom2D(target, destination, duration, stay, targetZoom, curve);
- }
- public static Shake GetShake(this Component comp)
- {
- return ManaAnim.GetShake(comp.transform);
- }
- public static Move2D GetMove2D(this Component comp)
- {
- return ManaAnim.GetMove2D(comp.transform);
- }
- public static Move3D GetMove3D(this Component comp)
- {
- return ManaAnim.GetMove3D(comp.transform);
- }
- public static Zoom2D GetZoom2D(this Component comp)
- {
- return ManaAnim.GetZoom2D(comp.transform);
- }
- public static Shake CreateShake(this Component comp)
- {
- return ManaAnim.CreateShake(comp.transform);
- }
- public static Move2D CreateMove2D(this Component comp)
- {
- return ManaAnim.CreateMove2D(comp.transform);
- }
- public static Move3D CreateMove3D(this Component comp)
- {
- return ManaAnim.CreateMove3D(comp.transform);
- }
- public static Zoom2D CreateZoom2D(this Component comp)
- {
- return ManaAnim.CreateZoom2D(comp.transform);
- }
- #endregion
- #region Tween
- public static TweenSr TweenForSr(this Component comp)
- {
- return ManaAnim.TweenForSr(comp.transform);
- }
- public static TweenCG TweenForCG(this Component comp)
- {
- return ManaAnim.TweenForCG(comp.transform);
- }
- public static TweenVec TweenForVec(this Component comp)
- {
- return ManaAnim.TweenForVec(comp.transform);
- }
- public static TweenGra TweenForGra(this Component comp)
- {
- return ManaAnim.TweenForGra(comp.transform);
- }
- public static TweenFont TweenForFont(this Component comp)
- {
- return ManaAnim.TweenForFont(comp.transform);
- }
- public static TweenRect TweenForRect(this Component comp)
- {
- return ManaAnim.TweenForRect(comp.transform);
- }
- public static TweenScale TweenForScale(this Component comp)
- {
- return ManaAnim.TweenForScale(comp.transform);
- }
- public static TweenAudio TweenForAudio(this Component comp)
- {
- return ManaAnim.TweenForAudio(comp.transform);
- }
- public static TweenAudio TweenForAudio(this AudioSource audioSource)
- {
- return ManaAnim.TweenForAudio(audioSource);
- }
- public static TweenOutline TweenForOutline(this Component comp)
- {
- return ManaAnim.TweenForOutline(comp.transform);
- }
- public static TweenNumber TweenForNumber(this Component comp)
- {
- return ManaAnim.TweenForNumber(comp.transform);
- }
- public static TweenSr TweenBacSr(this Component comp)
- {
- return ManaAnim.TweenBacSr(comp.transform);
- }
- public static TweenCG TweenBacCG(this Component comp)
- {
- return ManaAnim.TweenBacCG(comp.transform);
- }
- public static TweenVec TweenBacVec(this Component comp)
- {
- return ManaAnim.TweenBacVec(comp.transform);
- }
- public static TweenGra TweenBacGra(this Component comp)
- {
- return ManaAnim.TweenBacGra(comp.transform);
- }
- public static TweenFont TweenBacFont(this Component comp)
- {
- return ManaAnim.TweenBacFont(comp.transform);
- }
- public static TweenRect TweenBacRect(this Component comp)
- {
- return ManaAnim.TweenBacRect(comp.transform);
- }
- public static TweenScale TweenBacScale(this Component comp)
- {
- return ManaAnim.TweenBacScale(comp.transform);
- }
- public static TweenAudio TweenBacAudio(this Component comp)
- {
- return ManaAnim.TweenBacAudio(comp.transform);
- }
- public static TweenAudio TweenBacAudio(this AudioSource audioSource)
- {
- return ManaAnim.TweenBacAudio(audioSource);
- }
- public static TweenOutline TweenBacOutline(this Component comp)
- {
- return ManaAnim.TweenBacOutline(comp.transform);
- }
- public static TweenNumber TweenBacNumber(this Component comp)
- {
- return ManaAnim.TweenBacNumber(comp.transform);
- }
- public static TweenSr TweenReForSr(this Component comp)
- {
- return ManaAnim.TweenReForSr(comp.transform);
- }
- public static TweenCG TweenReForCG(this Component comp)
- {
- return ManaAnim.TweenReForCG(comp.transform);
- }
- public static TweenVec TweenReForVec(this Component comp)
- {
- return ManaAnim.TweenReForVec(comp.transform);
- }
- public static TweenGra TweenReForGra(this Component comp)
- {
- return ManaAnim.TweenReForGra(comp.transform);
- }
- public static TweenFont TweenReForFont(this Component comp)
- {
- return ManaAnim.TweenReForFont(comp.transform);
- }
- public static TweenRect TweenReForRect(this Component comp)
- {
- return ManaAnim.TweenReForRect(comp.transform);
- }
- public static TweenScale TweenReForScale(this Component comp)
- {
- return ManaAnim.TweenReForScale(comp.transform);
- }
- public static TweenAudio TweenReForAudio(this Component comp)
- {
- return ManaAnim.TweenReForAudio(comp.transform);
- }
- public static TweenAudio TweenReForAudio(this AudioSource audioSource)
- {
- return ManaAnim.TweenReForAudio(audioSource);
- }
- public static TweenOutline TweenReForOutline(this Component comp)
- {
- return ManaAnim.TweenReForOutline(comp.transform);
- }
- public static TweenNumber TweenReForNumber(this Component comp)
- {
- return ManaAnim.TweenReForNumber(comp.transform);
- }
- public static TweenSr TweenReBacSr(this Component comp)
- {
- return ManaAnim.TweenReBacSr(comp.transform);
- }
- public static TweenCG TweenReBacCG(this Component comp)
- {
- return ManaAnim.TweenReBacCG(comp.transform);
- }
- public static TweenVec TweenReBacVec(this Component comp)
- {
- return ManaAnim.TweenReBacVec(comp.transform);
- }
- public static TweenGra TweenReBacGra(this Component comp)
- {
- return ManaAnim.TweenReBacGra(comp.transform);
- }
- public static TweenFont TweenReBacFont(this Component comp)
- {
- return ManaAnim.TweenReBacFont(comp.transform);
- }
- public static TweenRect TweenReBacRect(this Component comp)
- {
- return ManaAnim.TweenReBacRect(comp.transform);
- }
- public static TweenScale TweenReBacScale(this Component comp)
- {
- return ManaAnim.TweenReBacScale(comp.transform);
- }
- public static TweenAudio TweenReBacAudio(this Component comp)
- {
- return ManaAnim.TweenReBacAudio(comp.transform);
- }
- public static TweenAudio TweenReBacAudio(this AudioSource audioSource)
- {
- return ManaAnim.TweenReBacAudio(audioSource);
- }
- public static TweenOutline TweenReBacOutline(this Component comp)
- {
- return ManaAnim.TweenReBacOutline(comp.transform);
- }
- public static TweenNumber TweenReBacNumber(this Component comp)
- {
- return ManaAnim.TweenReBacNumber(comp.transform);
- }
- public static TweenSr GetTweenSr(this Component comp)
- {
- return ManaAnim.GetTweenSr(comp.transform);
- }
- public static TweenCG GetTweenCG(this Component comp)
- {
- return ManaAnim.GetTweenCG(comp.transform);
- }
- public static TweenVec GetTweenVec(this Component comp)
- {
- return ManaAnim.GetTweenVec(comp.transform);
- }
- public static TweenGra GetTweenGra(this Component comp)
- {
- return ManaAnim.GetTweenGra(comp.transform);
- }
- public static TweenFont GetTweenFont(this Component comp)
- {
- return ManaAnim.GetTweenFont(comp.transform);
- }
- public static TweenRect GetTweenRect(this Component comp)
- {
- return ManaAnim.GetTweenRect(comp.transform);
- }
- public static TweenScale GetTweenScale(this Component comp)
- {
- return ManaAnim.GetTweenScale(comp.transform);
- }
- public static TweenAudio GetTweenAudio(this Component comp)
- {
- return ManaAnim.GetTweenAudio(comp.transform);
- }
- public static TweenAudio GetTweenAudio(this AudioSource audioSource)
- {
- return ManaAnim.GetTweenAudio(audioSource);
- }
- public static TweenOutline GetTweenOutline(this Component comp)
- {
- return ManaAnim.GetTweenOutline(comp.transform);
- }
- public static TweenNumber GetTweenNumber(this Component comp)
- {
- return ManaAnim.GetTweenNumber(comp.transform);
- }
- 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)
- {
- return ManaAnim.CreateTweenSr(comp.transform, origin, destination, duration, originActive, destActive, curve, cg, group);
- }
- public static TweenSr CreateTweenSr(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
- {
- return ManaAnim.CreateTweenSr(comp.transform, destination, duration, originActive, destActive, curve, cg, group);
- }
- 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)
- {
- return ManaAnim.CreateTweenSr(comp.transform, origin, destination, duration, originActive, destActive, curve, cg, group);
- }
- public static TweenSr CreateTweenSr(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
- {
- return ManaAnim.CreateTweenSr(comp.transform, destination, duration, originActive, destActive, curve, cg, group);
- }
- public static TweenCG CreateTweenCG(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve)
- {
- return ManaAnim.CreateTweenCG(comp.transform, origin, destination, duration, originActive, destActive, curve);
- }
- public static TweenCG CreateTweenCG(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve)
- {
- return ManaAnim.CreateTweenCG(comp.transform, destination, duration, originActive, destActive, curve);
- }
- public static TweenGra CreateTweenGra(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenGra(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenGra CreateTweenGra(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenGra(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenGra CreateTweenGra(this Component comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenGra(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenGra CreateTweenGra(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenGra(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVec2D(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVec2D(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVec2D(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVec2D(comp.transform, destination, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVec3D(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVec3D(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVec3D(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVec3D(comp.transform, destination, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVecOffset2D(this Component comp, Vector3 offset, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVecOffset2D(comp.transform, offset, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenVec CreateTweenVecOffset3D(this Component comp, Vector3 offset, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenVecOffset3D(comp.transform, offset, duration, local, originActive, destActive, curve, cg);
- }
- public static TweenFont CreateTweenFont(this Component comp, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenFont(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenFont CreateTweenFont(this Component comp, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenFont(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenRect CreateTweenRect(this Component comp, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenRect(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenRect CreateTweenRect(this Component comp, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenRect(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenScale CreateTweenScale(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenScale(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenScale CreateTweenScale(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenScale(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenScale CreateTweenScale(this Component comp, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenScale(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenScale CreateTweenScale(this Component comp, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenScale(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenAudio CreateTweenAudio(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenAudio(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenAudio CreateTweenAudio(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenAudio(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenAudio CreateTweenAudio(this AudioSource audioSource, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenAudio(audioSource, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenAudio CreateTweenAudio(this AudioSource audioSource, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenAudio(audioSource, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenOutline CreateTweenOutline(this Component comp, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenOutline(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenOutline CreateTweenOutline(this Component comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenOutline(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenOutline CreateTweenOutline(this Component comp, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenOutline(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenOutline CreateTweenOutline(this Component comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenOutline(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenNumber CreateTweenNumber(this Component comp, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenNumber(comp.transform, origin, destination, duration, originActive, destActive, curve, cg);
- }
- public static TweenNumber CreateTweenNumber(this Component comp, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
- {
- return ManaAnim.CreateTweenNumber(comp.transform, destination, duration, originActive, destActive, curve, cg);
- }
- #endregion
- #region Stream
- public static StreamScale StreamForScale(this Component comp)
- {
- return ManaAnim.StreamForScale(comp.transform);
- }
- public static StreamScale StreamBacScale(this Component comp)
- {
- return ManaAnim.StreamBacScale(comp.transform);
- }
- public static StreamScale StreamReForScale(this Component comp)
- {
- return ManaAnim.StreamReForScale(comp.transform);
- }
- public static StreamScale StreamReBacScale(this Component comp)
- {
- return ManaAnim.StreamReBacScale(comp.transform);
- }
- public static StreamScale GetStreamScale(this Component comp)
- {
- return ManaAnim.GetStreamScale(comp.transform);
- }
- 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)
- {
- return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destKvList, originActive, destActive, curve, cg, startActionList, finishActionList);
- }
- 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)
- {
- return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destList, originActive, destActive, curve, cg, startActionList, finishActionList);
- }
- #endregion
- }
|