|
@@ -53,6 +53,7 @@ public class ManaAnim : Regist
|
|
|
public static Dictionary<Transform, Shake> ShakeDic;
|
|
|
public static Dictionary<Transform, Move2D> MoveDic2D;
|
|
|
public static Dictionary<Transform, Move3D> MoveDic3D;
|
|
|
+ public static Dictionary<Transform, Zoom2D> ZoomDic2D;
|
|
|
|
|
|
public static Dictionary<Transform, TweenSr> TweenSrDic;
|
|
|
public static Dictionary<Transform, TweenCG> TweenCgDic;
|
|
@@ -142,12 +143,6 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
|
|
|
|
|
|
- public override void TutorialRegistValue()
|
|
|
- {
|
|
|
- RegistValueA();
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
#region 曲线
|
|
|
|
|
|
public static float LinearTimer(float value, float duration, float start, float delta)
|
|
@@ -472,6 +467,44 @@ public class ManaAnim : Regist
|
|
|
return move;
|
|
|
}
|
|
|
|
|
|
+ public static Zoom2D Zoom2D(Transform target, float origin, float destination, float duration, float stay, Transform targetZoom, Curve curve)
|
|
|
+ {
|
|
|
+ Zoom2D move;
|
|
|
+
|
|
|
+ if (ZoomDic2D.TryGetValue(targetZoom, out move))
|
|
|
+ {
|
|
|
+ move.StartZoom(origin, destination, duration, stay, targetZoom, curve);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ move = CreateZoom2D(target);
|
|
|
+
|
|
|
+ move.StartZoom(origin, destination, duration, stay, targetZoom, curve);
|
|
|
+ }
|
|
|
+
|
|
|
+ return move;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static Zoom2D Zoom2D(Transform target, float destination, float duration, float stay, Transform targetZoom, Curve curve)
|
|
|
+ {
|
|
|
+ Zoom2D move;
|
|
|
+
|
|
|
+ Camera camera = target.GetComponent<Camera>();
|
|
|
+
|
|
|
+ if (ZoomDic2D.TryGetValue(targetZoom, out move))
|
|
|
+ {
|
|
|
+ move.StartZoom(camera.orthographicSize, destination, duration, stay, targetZoom, curve);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ move = CreateZoom2D(targetZoom);
|
|
|
+
|
|
|
+ move.StartZoom(camera.orthographicSize, destination, duration, stay, targetZoom, curve);
|
|
|
+ }
|
|
|
+
|
|
|
+ return move;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public static TweenSr TweenForSr(Transform target)
|
|
|
{
|
|
@@ -1098,6 +1131,20 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static Zoom2D GetZoom2D(Transform target)
|
|
|
+ {
|
|
|
+ Zoom2D move;
|
|
|
+
|
|
|
+ if (ZoomDic2D.TryGetValue(target, out move))
|
|
|
+ {
|
|
|
+ return move;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ throw new Exception();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public static TweenSr GetTweenSr(Transform target)
|
|
|
{
|
|
@@ -1289,8 +1336,28 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static Zoom2D CreateZoom2D(Transform target)
|
|
|
+ {
|
|
|
+ if (ZoomDic2D.ContainsKey(target))
|
|
|
+ {
|
|
|
+ Zoom2D zoom2D = ZoomDic2D[target];
|
|
|
+
|
|
|
+ zoom2D = new Zoom2D(target.GetComponent<Camera>());
|
|
|
+
|
|
|
+ return zoom2D;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Zoom2D zoom2D = new Zoom2D(target.GetComponent<Camera>());
|
|
|
+
|
|
|
+ ZoomDic2D.Add(target, zoom2D);
|
|
|
+
|
|
|
+ return zoom2D;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- public static TweenSr CreateTweenSr(Transform target, float originAlpha, float destinationAlpha, float duration, bool group, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenSr CreateTweenSr(Transform target, float originAlpha, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
|
|
|
{
|
|
|
TweenSr tween;
|
|
|
SpriteRenderer sr = target.GetComponent<SpriteRenderer>();
|
|
@@ -1305,13 +1372,13 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
tween = TweenSrDic[target];
|
|
|
|
|
|
- tween = new TweenSr(sr, origin, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, origin, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenSr(sr, origin, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, origin, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
TweenSrDic.Add(target, tween);
|
|
|
|
|
@@ -1319,7 +1386,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenSr CreateTweenSr(Transform target, float destinationAlpha, float duration, bool group, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenSr CreateTweenSr(Transform target, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group = false)
|
|
|
{
|
|
|
TweenSr tween;
|
|
|
SpriteRenderer sr = target.GetComponent<SpriteRenderer>();
|
|
@@ -1332,13 +1399,13 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
tween = TweenSrDic[target];
|
|
|
|
|
|
- tween = new TweenSr(sr, sr.color, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, sr.color, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenSr(sr, sr.color, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, sr.color, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
TweenSrDic.Add(target, tween);
|
|
|
|
|
@@ -1346,7 +1413,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenSr CreateTweenSr(Transform target, Color origin, Color destination, float duration, bool group, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenSr CreateTweenSr(Transform target, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group=false)
|
|
|
{
|
|
|
if (TweenSrDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1354,7 +1421,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenSr tween = TweenSrDic[target];
|
|
|
|
|
|
- tween = new TweenSr(sr, origin, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, origin, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1362,7 +1429,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
SpriteRenderer sr = target.GetComponent<SpriteRenderer>();
|
|
|
|
|
|
- TweenSr tween = new TweenSr(sr, origin, destination, duration, group, originActive, destActive, curve);
|
|
|
+ TweenSr tween = new TweenSr(sr, origin, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
TweenSrDic.Add(target, tween);
|
|
|
|
|
@@ -1370,7 +1437,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenSr CreateTweenSr(Transform target, Color destination, float duration, bool group, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenSr CreateTweenSr(Transform target, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false, bool group=false)
|
|
|
{
|
|
|
if (TweenSrDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1378,7 +1445,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenSr tween = TweenSrDic[target];
|
|
|
|
|
|
- tween = new TweenSr(sr, sr.color, destination, duration, group, originActive, destActive, curve);
|
|
|
+ tween = new TweenSr(sr, sr.color, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1386,7 +1453,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
SpriteRenderer sr = target.GetComponent<SpriteRenderer>();
|
|
|
|
|
|
- TweenSr tween = new TweenSr(sr, sr.color, destination, duration, group, originActive, destActive, curve);
|
|
|
+ TweenSr tween = new TweenSr(sr, sr.color, destination, duration, originActive, destActive, curve, cg, group);
|
|
|
|
|
|
TweenSrDic.Add(target, tween);
|
|
|
|
|
@@ -1442,7 +1509,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenGra CreateTweenGra(Transform target, float originAlpha, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenGra CreateTweenGra(Transform target, float originAlpha, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
Graphic graphic = target.GetComponent<Graphic>();
|
|
|
TweenGra tween;
|
|
@@ -1457,13 +1524,13 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
tween = TweenGraDic[target];
|
|
|
|
|
|
- tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenGraDic.Add(target, tween);
|
|
|
|
|
@@ -1471,7 +1538,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenGra CreateTweenGra(Transform target, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenGra CreateTweenGra(Transform target, float destinationAlpha, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
Graphic graphic = target.GetComponent<Graphic>();
|
|
|
TweenGra tween;
|
|
@@ -1484,13 +1551,13 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
tween = TweenGraDic[target];
|
|
|
|
|
|
- tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenGraDic.Add(target, tween);
|
|
|
|
|
@@ -1498,7 +1565,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenGra CreateTweenGra(Transform target, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenGra CreateTweenGra(Transform target, Color origin, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenGraDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1506,7 +1573,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenGra tween = TweenGraDic[target];
|
|
|
|
|
|
- tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1514,7 +1581,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
Graphic graphic = target.GetComponent<Graphic>();
|
|
|
|
|
|
- TweenGra tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenGra tween = new TweenGra(graphic, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenGraDic.Add(target, tween);
|
|
|
|
|
@@ -1522,7 +1589,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenGra CreateTweenGra(Transform target, Color destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenGra CreateTweenGra(Transform target, Color destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenGraDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1530,7 +1597,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenGra tween = TweenGraDic[target];
|
|
|
|
|
|
- tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1538,7 +1605,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
Graphic graphic = target.GetComponent<Graphic>();
|
|
|
|
|
|
- TweenGra tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenGra tween = new TweenGra(graphic, graphic.color, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenGraDic.Add(target, tween);
|
|
|
|
|
@@ -1546,7 +1613,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenVec CreateTweenVec2D(Transform target, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenVec CreateTweenVec2D(Transform target, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
origin.z = target.position.z;
|
|
|
destination.z = target.position.z;
|
|
@@ -1555,13 +1622,13 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
TweenVec tween = TweenVecDic[target];
|
|
|
|
|
|
- tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenVec tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve);
|
|
|
+ TweenVec tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenVecDic.Add(target, tween);
|
|
|
|
|
@@ -1569,7 +1636,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenVec CreateTweenVec2D(Transform target, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenVec CreateTweenVec2D(Transform target, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
destination.z = target.position.z;
|
|
|
|
|
@@ -1579,11 +1646,11 @@ public class ManaAnim : Regist
|
|
|
|
|
|
if (local)
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
|
|
|
return tween;
|
|
@@ -1594,11 +1661,11 @@ public class ManaAnim : Regist
|
|
|
|
|
|
if (local)
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
|
|
|
TweenVecDic.Add(target, tween);
|
|
@@ -1607,19 +1674,19 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenVec CreateTweenVec3D(Transform target, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenVec CreateTweenVec3D(Transform target, Vector3 origin, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenVecDic.ContainsKey(target))
|
|
|
{
|
|
|
TweenVec tween = TweenVecDic[target];
|
|
|
|
|
|
- tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenVec tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve);
|
|
|
+ TweenVec tween = new TweenVec(target, origin, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenVecDic.Add(target, tween);
|
|
|
|
|
@@ -1627,7 +1694,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenVec CreateTweenVec3D(Transform target, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenVec CreateTweenVec3D(Transform target, Vector3 destination, float duration, bool local, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenVecDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1635,11 +1702,11 @@ public class ManaAnim : Regist
|
|
|
|
|
|
if (local)
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
|
|
|
return tween;
|
|
@@ -1650,11 +1717,11 @@ public class ManaAnim : Regist
|
|
|
|
|
|
if (local)
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.localPosition, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve);
|
|
|
+ tween = new TweenVec(target, target.position, destination, duration, local, originActive, destActive, curve, cg);
|
|
|
}
|
|
|
|
|
|
TweenVecDic.Add(target, tween);
|
|
@@ -1663,7 +1730,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenText CreateTweenText(Transform target, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenText CreateTweenText(Transform target, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenRectDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1671,7 +1738,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenText tween = TweenTextDic[target];
|
|
|
|
|
|
- tween = new TweenText(text, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenText(text, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1679,7 +1746,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
Text text = target.GetComponent<Text>();
|
|
|
|
|
|
- TweenText tween = new TweenText(text, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenText tween = new TweenText(text, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenTextDic.Add(target, tween);
|
|
|
|
|
@@ -1687,7 +1754,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenText CreateTweenText(Transform target, float destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenText CreateTweenText(Transform target, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenRectDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1695,7 +1762,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenText tween = TweenTextDic[target];
|
|
|
|
|
|
- tween = new TweenText(text, text.fontSize, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenText(text, text.fontSize, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1703,7 +1770,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
Text text = target.GetComponent<Text>();
|
|
|
|
|
|
- TweenText tween = new TweenText(text, text.fontSize, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenText tween = new TweenText(text, text.fontSize, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenTextDic.Add(target, tween);
|
|
|
|
|
@@ -1711,7 +1778,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenRect CreateTweenRect(Transform target, Vector2 origin, Vector2 destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenRect CreateTweenRect(Transform target, Vector2 origin, Vector2 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenRectDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1719,7 +1786,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenRect tween = TweenRectDic[target];
|
|
|
|
|
|
- tween = new TweenRect(rectTra, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenRect(rectTra, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1727,7 +1794,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
RectTransform rectTra = target.GetComponent<RectTransform>();
|
|
|
|
|
|
- TweenRect tween = new TweenRect(rectTra, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenRect tween = new TweenRect(rectTra, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenRectDic.Add(target, tween);
|
|
|
|
|
@@ -1735,7 +1802,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenRect CreateTweenRect(Transform target, Vector2 destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenRect CreateTweenRect(Transform target, Vector2 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenRectDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1743,7 +1810,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenRect tween = TweenRectDic[target];
|
|
|
|
|
|
- tween = new TweenRect(rectTra, rectTra.rect.size, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenRect(rectTra, rectTra.rect.size, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1751,7 +1818,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
RectTransform rectTra = target.GetComponent<RectTransform>();
|
|
|
|
|
|
- TweenRect tween = new TweenRect(rectTra, rectTra.rect.size, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenRect tween = new TweenRect(rectTra, rectTra.rect.size, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenRectDic.Add(target, tween);
|
|
|
|
|
@@ -1759,19 +1826,19 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenScale CreateTweenScale(Transform target, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenScale CreateTweenScale(Transform target, Vector3 origin, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenScaleDic.ContainsKey(target))
|
|
|
{
|
|
|
TweenScale tween = TweenScaleDic[target];
|
|
|
|
|
|
- tween = new TweenScale(target, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenScale(target, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenScale tween = new TweenScale(target, origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenScale tween = new TweenScale(target, origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenScaleDic.Add(target, tween);
|
|
|
|
|
@@ -1779,19 +1846,19 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenScale CreateTweenScale(Transform target, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenScale CreateTweenScale(Transform target, Vector3 destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenScaleDic.ContainsKey(target))
|
|
|
{
|
|
|
TweenScale tween = TweenScaleDic[target];
|
|
|
|
|
|
- tween = new TweenScale(target, target.lossyScale, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenScale(target, target.lossyScale, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenScale tween = new TweenScale(target, target.lossyScale, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenScale tween = new TweenScale(target, target.lossyScale, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenScaleDic.Add(target, tween);
|
|
|
|
|
@@ -1799,19 +1866,19 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenAudio CreateTweenAudio(Transform target, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenAudio CreateTweenAudio(Transform target, float origin, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenAudioDic.ContainsKey(target))
|
|
|
{
|
|
|
TweenAudio tween = TweenAudioDic[target];
|
|
|
|
|
|
- tween = new TweenAudio(target.GetComponent<AudioSource>(), origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenAudio(target.GetComponent<AudioSource>(), origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenAudio tween = new TweenAudio(target.GetComponent<AudioSource>(), origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenAudio tween = new TweenAudio(target.GetComponent<AudioSource>(), origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenAudioDic.Add(target, tween);
|
|
|
|
|
@@ -1819,7 +1886,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenAudio CreateTweenAudio(Transform target, float destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenAudio CreateTweenAudio(Transform target, float destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenAudioDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1827,7 +1894,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenAudio tween = TweenAudioDic[target];
|
|
|
|
|
|
- tween = new TweenAudio(audio , audio.volume, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenAudio(audio , audio.volume, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1835,7 +1902,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
AudioSource audio = target.GetComponent<AudioSource>();
|
|
|
|
|
|
- TweenAudio tween = new TweenAudio(audio, audio.volume, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenAudio tween = new TweenAudio(audio, audio.volume, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenAudioDic.Add(target, tween);
|
|
|
|
|
@@ -1843,19 +1910,19 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenNumber CreateTweenNumber(Transform target, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenNumber CreateTweenNumber(Transform target, int origin, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenNumberDic.ContainsKey(target))
|
|
|
{
|
|
|
TweenNumber tween = TweenNumberDic[target];
|
|
|
|
|
|
- tween = new TweenNumber(target.GetComponent<Text>(), origin, destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenNumber(target.GetComponent<Text>(), origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- TweenNumber tween = new TweenNumber(target.GetComponent<Text>(), origin, destination, duration, originActive, destActive, curve);
|
|
|
+ TweenNumber tween = new TweenNumber(target.GetComponent<Text>(), origin, destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenNumberDic.Add(target, tween);
|
|
|
|
|
@@ -1863,7 +1930,7 @@ public class ManaAnim : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static TweenNumber CreateTweenNumber(Transform target, int destination, float duration, bool originActive, bool destActive, Curve curve)
|
|
|
+ public static TweenNumber CreateTweenNumber(Transform target, int destination, float duration, bool originActive, bool destActive, Curve curve, bool cg = false)
|
|
|
{
|
|
|
if (TweenNumberDic.ContainsKey(target))
|
|
|
{
|
|
@@ -1871,7 +1938,7 @@ public class ManaAnim : Regist
|
|
|
|
|
|
TweenNumber tween = TweenNumberDic[target];
|
|
|
|
|
|
- tween = new TweenNumber(text, int.Parse(text.text), destination, duration, originActive, destActive, curve);
|
|
|
+ tween = new TweenNumber(text, int.Parse(text.text), destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
return tween;
|
|
|
}
|
|
@@ -1879,7 +1946,7 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
Text text = target.GetComponent<Text>();
|
|
|
|
|
|
- TweenNumber tween = new TweenNumber(text, int.Parse(text.text), destination, duration, originActive, destActive, curve);
|
|
|
+ TweenNumber tween = new TweenNumber(text, int.Parse(text.text), destination, duration, originActive, destActive, curve, cg);
|
|
|
|
|
|
TweenNumberDic.Add(target, tween);
|
|
|
|