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 AnimManager.Shake(comp.transform, duration, repeat, strength, curve); } public static Move2D Move2D(this Component comp, Vector3 destination, float duration, bool local, Curve curve) { return AnimManager.Move2D(comp.transform, destination, duration, local, curve); } public static Move3D Move3D(this Component comp, Vector3 destination, float duration, bool local, Curve curve) { return AnimManager.Move3D(comp.transform, destination, duration, local, curve); } public static Move2D MoveOffset2D(this Component comp, Vector3 offset, float duration, bool local, Curve curve) { return AnimManager.MoveOffset2D(comp.transform, offset, duration, local, curve); } public static Move3D MoveOffset3D(this Component comp, Vector3 offset, float duration, bool local, Curve curve) { return AnimManager.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 AnimManager.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 AnimManager.Zoom2D(target, destination, duration, stay, targetZoom, curve); } public static Shake GetShake(this Component comp) { return AnimManager.GetShake(comp.transform); } public static Move2D GetMove2D(this Component comp) { return AnimManager.GetMove2D(comp.transform); } public static Move3D GetMove3D(this Component comp) { return AnimManager.GetMove3D(comp.transform); } public static Zoom2D GetZoom2D(this Component comp) { return AnimManager.GetZoom2D(comp.transform); } public static Shake CreateShake(this Component comp) { return AnimManager.CreateShake(comp.transform); } public static Move2D CreateMove2D(this Component comp) { return AnimManager.CreateMove2D(comp.transform); } public static Move3D CreateMove3D(this Component comp) { return AnimManager.CreateMove3D(comp.transform); } public static Zoom2D CreateZoom2D(this Component comp) { return AnimManager.CreateZoom2D(comp.transform); } #endregion #region Tween public static TweenSr TweenForSr(this Component comp) { return AnimManager.TweenForSr(comp.transform); } public static TweenRenderer TweenForRenderer(this Renderer comp) { return AnimManager.TweenForRenderer(comp); } public static TweenCG TweenForCG(this Component comp) { return AnimManager.TweenForCG(comp.transform); } public static TweenVec TweenForVec(this Component comp) { return AnimManager.TweenForVec(comp.transform); } public static TweenEuler TweenForEuler(this Component comp) { return AnimManager.TweenForEuler(comp.transform); } public static TweenGra TweenForGra(this Component comp) { return AnimManager.TweenForGra(comp.transform); } public static TweenFont TweenForFont(this Component comp) { return AnimManager.TweenForFont(comp.transform); } public static TweenRect TweenForRect(this Component comp) { return AnimManager.TweenForRect(comp.transform); } public static TweenScale TweenForScale(this Component comp) { return AnimManager.TweenForScale(comp.transform); } public static TweenAudio TweenForAudio(this Component comp) { return AnimManager.TweenForAudio(comp.transform); } public static TweenAudio TweenForAudio(this AudioSource audioSource) { return AnimManager.TweenForAudio(audioSource); } public static TweenOutline TweenForOutline(this Component comp) { return AnimManager.TweenForOutline(comp.transform); } public static TweenNumber TweenForNumber(this Component comp) { return AnimManager.TweenForNumber(comp.transform); } public static TweenMatFloat TweenForMatFloat(this MaterialUnit materialUnit) { return AnimManager.TweenForMatFloat(materialUnit); } public static TweenMatColor TweenForMatColor(this MaterialUnit materialUnit) { return AnimManager.TweenForMatColor(materialUnit); } public static TweenRenderer TweenBacRenderer(this Renderer comp) { return AnimManager.TweenBacRenderer(comp); } public static TweenSr TweenBacSr(this Component comp) { return AnimManager.TweenBacSr(comp.transform); } public static TweenCG TweenBacCG(this Component comp) { return AnimManager.TweenBacCG(comp.transform); } public static TweenVec TweenBacVec(this Component comp) { return AnimManager.TweenBacVec(comp.transform); } public static TweenEuler TweenBacEuler(this Component comp) { return AnimManager.TweenBacEuler(comp.transform); } public static TweenGra TweenBacGra(this Component comp) { return AnimManager.TweenBacGra(comp.transform); } public static TweenFont TweenBacFont(this Component comp) { return AnimManager.TweenBacFont(comp.transform); } public static TweenRect TweenBacRect(this Component comp) { return AnimManager.TweenBacRect(comp.transform); } public static TweenScale TweenBacScale(this Component comp) { return AnimManager.TweenBacScale(comp.transform); } public static TweenAudio TweenBacAudio(this Component comp) { return AnimManager.TweenBacAudio(comp.transform); } public static TweenAudio TweenBacAudio(this AudioSource audioSource) { return AnimManager.TweenBacAudio(audioSource); } public static TweenOutline TweenBacOutline(this Component comp) { return AnimManager.TweenBacOutline(comp.transform); } public static TweenNumber TweenBacNumber(this Component comp) { return AnimManager.TweenBacNumber(comp.transform); } public static TweenMatFloat TweenBacMatFloat(this MaterialUnit materialUnit) { return AnimManager.TweenBacMatFloat(materialUnit); } public static TweenMatColor TweenBacMatColor(this MaterialUnit materialUnit) { return AnimManager.TweenBacMatColor(materialUnit); } public static TweenRenderer TweenReForRenderer(this Renderer comp) { return AnimManager.TweenReForRenderer(comp); } public static TweenSr TweenReForSr(this Component comp) { return AnimManager.TweenReForSr(comp.transform); } public static TweenCG TweenReForCG(this Component comp) { return AnimManager.TweenReForCG(comp.transform); } public static TweenVec TweenReForVec(this Component comp) { return AnimManager.TweenReForVec(comp.transform); } public static TweenEuler TweenReForEuler(this Component comp) { return AnimManager.TweenReForEuler(comp.transform); } public static TweenGra TweenReForGra(this Component comp) { return AnimManager.TweenReForGra(comp.transform); } public static TweenFont TweenReForFont(this Component comp) { return AnimManager.TweenReForFont(comp.transform); } public static TweenRect TweenReForRect(this Component comp) { return AnimManager.TweenReForRect(comp.transform); } public static TweenScale TweenReForScale(this Component comp) { return AnimManager.TweenReForScale(comp.transform); } public static TweenAudio TweenReForAudio(this Component comp) { return AnimManager.TweenReForAudio(comp.transform); } public static TweenAudio TweenReForAudio(this AudioSource audioSource) { return AnimManager.TweenReForAudio(audioSource); } public static TweenOutline TweenReForOutline(this Component comp) { return AnimManager.TweenReForOutline(comp.transform); } public static TweenNumber TweenReForNumber(this Component comp) { return AnimManager.TweenReForNumber(comp.transform); } public static TweenMatFloat TweenReForMatFloat(this MaterialUnit materialUnit) { return AnimManager.TweenReForMatFloat(materialUnit); } public static TweenMatColor TweenReForMatColor(this MaterialUnit materialUnit) { return AnimManager.TweenReForMatColor(materialUnit); } public static TweenRenderer TweenReBacRenderer(this Renderer comp) { return AnimManager.TweenReBacRenderer(comp); } public static TweenSr TweenReBacSr(this Component comp) { return AnimManager.TweenReBacSr(comp.transform); } public static TweenCG TweenReBacCG(this Component comp) { return AnimManager.TweenReBacCG(comp.transform); } public static TweenVec TweenReBacVec(this Component comp) { return AnimManager.TweenReBacVec(comp.transform); } public static TweenEuler TweenReBacEuler(this Component comp) { return AnimManager.TweenReBacEuler(comp.transform); } public static TweenGra TweenReBacGra(this Component comp) { return AnimManager.TweenReBacGra(comp.transform); } public static TweenFont TweenReBacFont(this Component comp) { return AnimManager.TweenReBacFont(comp.transform); } public static TweenRect TweenReBacRect(this Component comp) { return AnimManager.TweenReBacRect(comp.transform); } public static TweenScale TweenReBacScale(this Component comp) { return AnimManager.TweenReBacScale(comp.transform); } public static TweenAudio TweenReBacAudio(this Component comp) { return AnimManager.TweenReBacAudio(comp.transform); } public static TweenAudio TweenReBacAudio(this AudioSource audioSource) { return AnimManager.TweenReBacAudio(audioSource); } public static TweenOutline TweenReBacOutline(this Component comp) { return AnimManager.TweenReBacOutline(comp.transform); } public static TweenNumber TweenReBacNumber(this Component comp) { return AnimManager.TweenReBacNumber(comp.transform); } public static TweenMatFloat TweenReBacMatFloat(this MaterialUnit materialUnit) { return AnimManager.TweenReBacMatFloat(materialUnit); } public static TweenMatColor TweenReBacMatColor(this MaterialUnit materialUnit) { return AnimManager.TweenReBacMatColor(materialUnit); } public static TweenRenderer GetTweenRenderer(this Renderer comp) { return AnimManager.GetTweenRenderer(comp); } public static TweenSr GetTweenSr(this Component comp) { return AnimManager.GetTweenSr(comp.transform); } public static TweenCG GetTweenCG(this Component comp) { return AnimManager.GetTweenCG(comp.transform); } public static TweenVec GetTweenVec(this Component comp) { return AnimManager.GetTweenVec(comp.transform); } public static TweenEuler GetTweenEuler(this Component comp) { return AnimManager.GetTweenEuler(comp.transform); } public static TweenGra GetTweenGra(this Component comp) { return AnimManager.GetTweenGra(comp.transform); } public static TweenFont GetTweenFont(this Component comp) { return AnimManager.GetTweenFont(comp.transform); } public static TweenRect GetTweenRect(this Component comp) { return AnimManager.GetTweenRect(comp.transform); } public static TweenScale GetTweenScale(this Component comp) { return AnimManager.GetTweenScale(comp.transform); } public static TweenAudio GetTweenAudio(this Component comp) { return AnimManager.GetTweenAudio(comp.transform); } public static TweenAudio GetTweenAudio(this AudioSource audioSource) { return AnimManager.GetTweenAudio(audioSource); } public static TweenOutline GetTweenOutline(this Component comp) { return AnimManager.GetTweenOutline(comp.transform); } public static TweenNumber GetTweenNumber(this Component comp) { return AnimManager.GetTweenNumber(comp.transform); } public static TweenMatFloat GetTweenMatFloat(this MaterialUnit materialUnit) { return AnimManager.GetTweenMatFloat(materialUnit); } public static TweenMatColor GetTweenMatColor(this MaterialUnit materialUnit) { return AnimManager.GetTweenMatColor(materialUnit); } 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) { return AnimManager.CreateTweenRenderer(comp, origin, destination, duration, originActive, destActive, curve, cg, group); } public static TweenRenderer CreateTweenRenderer(this Renderer comp, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false) { return AnimManager.CreateTweenRenderer(comp, destination, duration, originActive, destActive, curve, cg, group); } 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) { return AnimManager.CreateTweenRenderer(comp, origin, destination, duration, originActive, destActive, curve, cg, group); } public static TweenRenderer CreateTweenRenderer(this Renderer comp, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false) { return AnimManager.CreateTweenRenderer(comp, destination, duration, originActive, destActive, curve, cg, group); } 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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.CreateTweenVecOffset3D(comp.transform, offset, duration, local, originActive, destActive, curve, cg); } public static TweenEuler CreateTweenEuler(this Component comp, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenEuler(comp.transform, origin, destination, duration, local, originActive, destActive, curve, cg); } public static TweenEuler CreateTweenEuler(this Component comp, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenEuler(comp.transform, destination, 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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.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 AnimManager.CreateTweenNumber(comp.transform, destination, duration, originActive, destActive, curve, cg); } public static TweenMatColor CreateTweenMatColor(this MaterialUnit materialUnit, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenMatColor(materialUnit, origin, destination, duration, originActive, destActive, curve, cg); } public static TweenMatColor CreateTweenMatColor(this MaterialUnit materialUnit, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenMatColor(materialUnit, destination, duration, originActive, destActive, curve, cg); } public static TweenMatFloat CreateTweenMatFloat(this MaterialUnit materialUnit, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenMatFloat(materialUnit, origin, destination, duration, originActive, destActive, curve, cg); } public static TweenMatFloat CreateTweenMatFloat(this MaterialUnit materialUnit, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false) { return AnimManager.CreateTweenMatFloat(materialUnit, destination, duration, originActive, destActive, curve, cg); } #endregion #region Stream public static StreamScale StreamForScale(this Component comp) { return AnimManager.StreamForScale(comp.transform); } public static StreamScale StreamBacScale(this Component comp) { return AnimManager.StreamBacScale(comp.transform); } public static StreamScale StreamReForScale(this Component comp) { return AnimManager.StreamReForScale(comp.transform); } public static StreamScale StreamReBacScale(this Component comp) { return AnimManager.StreamReBacScale(comp.transform); } public static StreamScale GetStreamScale(this Component comp) { return AnimManager.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 AnimManager.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 AnimManager.CreateStreamScale(comp.transform, delayList, durationList, destList, originActive, destActive, curve, cg, startActionList, finishActionList); } #endregion }