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 delayList, List durationList, List destKvList, bool originActive, bool destActive, Curve curve, bool cg = false, List startActionList = null, List finishActionList = null) { return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destKvList, originActive, destActive, curve, cg, startActionList, finishActionList); } public static StreamScale CreateStreamScale(this Component comp, List delayList, List durationList, List destList, bool originActive, bool destActive, Curve curve, bool cg = false, List startActionList = null, List finishActionList = null) { return ManaAnim.CreateStreamScale(comp.transform, delayList, durationList, destList, originActive, destActive, curve, cg, startActionList, finishActionList); } #endregion }